]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.application/src/org/simantics/application/arguments/SimanticsArguments.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.application / src / org / simantics / application / arguments / SimanticsArguments.java
diff --git a/bundles/org.simantics.application/src/org/simantics/application/arguments/SimanticsArguments.java b/bundles/org.simantics.application/src/org/simantics/application/arguments/SimanticsArguments.java
new file mode 100644 (file)
index 0000000..ddad94e
--- /dev/null
@@ -0,0 +1,101 @@
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ *     VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.application.arguments;\r
+\r
+import org.simantics.application.arguments.IArgumentFactory.IntegerArgumentFactory;\r
+import org.simantics.application.arguments.IArgumentFactory.NoValueArgumentFactory;\r
+import org.simantics.application.arguments.IArgumentFactory.StringArgumentFactory;\r
+\r
+public final class SimanticsArguments {\r
+\r
+    /**\r
+     * See SimanticsPlatform#RecoveryPolicy.\r
+     */\r
+    public static final IArgumentFactory<Boolean> DO_NOT_SYNCHRONIZE_ONTOLOGIES = new NoValueArgumentFactory("-doNotSynchronizeOntologies");\r
+\r
+    /**\r
+     * See SimanticsPlatform#RecoveryPolicy.\r
+     */\r
+    public static final IArgumentFactory<Boolean> RECOVERY_POLICY_FIX_ERRORS = new NoValueArgumentFactory("-fixerrors");\r
+\r
+    /**\r
+     * See SimanticsPlatform#OntologyRecoveryPolicy.\r
+     */\r
+    public static final IArgumentFactory<Boolean> ONTOLOGY_RECOVERY_POLICY_REINSTALL = new NoValueArgumentFactory("-reinstall");\r
+\r
+    /**\r
+     * An optional argument that forces the default initial value of the\r
+     * workspace shown by the workspace selector to be the location specified\r
+     * with this argument.\r
+     */\r
+    public static final IArgumentFactory<String> DEFAULT_WORKSPACE_LOCATION = new StringArgumentFactory("-defaultWorkspaceLocation");\r
+\r
+    /**\r
+     * An optional argument that forces the workspace selector to be brought up\r
+     * during startup of the workbench. Needs no extra arguments. To select the\r
+     * workspace location directly, use the standard Eclipse -data argument.\r
+     */\r
+    public static final IArgumentFactory<Boolean> WORKSPACE_CHOOSER = new NoValueArgumentFactory("-workspacechooser");\r
+\r
+    /**\r
+     * An optional argument that forces the workspace selector to be brought up\r
+     * during startup of the workbench. Needs no extra arguments. To select the\r
+     * workspace location directly, use the standard Eclipse -data argument.\r
+     */\r
+    public static final IArgumentFactory<Boolean> WORKSPACE_NO_REMEMBER = new NoValueArgumentFactory("-workspacenoremember");\r
+\r
+    /**\r
+     * A mandatory argument because this will be used as the initial perspective\r
+     * of the workbench. The next argument string should be the perspective id.\r
+     */\r
+    public static final IArgumentFactory<String> PERSPECTIVE = new StringArgumentFactory("-perspective");\r
+\r
+    /**\r
+     * The address of the ProCore server to connect to for getting the model.\r
+     * The address argument must be written in the form:\r
+     * <code>hostname:port</code>.\r
+     */\r
+    public static final IArgumentFactory<String> SERVER = new StringArgumentFactory("-server", AddressValidator.INSTANCE);\r
+\r
+    /**\r
+     * For specifying the port to be used for a new local server. Only effective\r
+     * when a new database is being initialized, i.e. when a new local workspace\r
+     * is initialized.\r
+     */\r
+    public static final IArgumentFactory<Integer> LOCAL_SERVER_PORT = new IntegerArgumentFactory("-localport", 1, 65535);\r
+\r
+    /**\r
+     * Indicates that a working copy server is to be initialized from the\r
+     * database server designated by the #SERVER argument.\r
+     */\r
+    public static final IArgumentFactory<Boolean> CHECKOUT = new NoValueArgumentFactory("-checkout");\r
+\r
+    /**\r
+     * Tells the system to create a new model in the specified project.\r
+     */\r
+    public static final IArgumentFactory<Boolean> NEW_MODEL = new NoValueArgumentFactory("-newmodel");\r
+\r
+    /**\r
+     * The experiment id of the specified model.\r
+     */\r
+    public static final IArgumentFactory<String> EXPERIMENT = new StringArgumentFactory("-experiment");\r
+    \r
+    /**\r
+     * Disables database indexing (Experimental setting)\r
+     */\r
+    public static final IArgumentFactory<Boolean> DISABLE_INDEX = new NoValueArgumentFactory("-disableIndex");\r
+\r
+    /**\r
+     * Database ID defining the database implementation to use\r
+     */\r
+    public static final IArgumentFactory<String> DATABASE_ID = new StringArgumentFactory("-databaseId");\r
+}\r