]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 /*******************************************************************************\r
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
3  * in Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.application.arguments;\r
13 \r
14 import org.simantics.application.arguments.IArgumentFactory.IntegerArgumentFactory;\r
15 import org.simantics.application.arguments.IArgumentFactory.NoValueArgumentFactory;\r
16 import org.simantics.application.arguments.IArgumentFactory.StringArgumentFactory;\r
17 \r
18 public final class SimanticsArguments {\r
19 \r
20     /**\r
21      * See SimanticsPlatform#RecoveryPolicy.\r
22      */\r
23     public static final IArgumentFactory<Boolean> DO_NOT_SYNCHRONIZE_ONTOLOGIES = new NoValueArgumentFactory("-doNotSynchronizeOntologies");\r
24 \r
25     /**\r
26      * See SimanticsPlatform#RecoveryPolicy.\r
27      */\r
28     public static final IArgumentFactory<Boolean> RECOVERY_POLICY_FIX_ERRORS = new NoValueArgumentFactory("-fixerrors");\r
29 \r
30     /**\r
31      * See SimanticsPlatform#OntologyRecoveryPolicy.\r
32      */\r
33     public static final IArgumentFactory<Boolean> ONTOLOGY_RECOVERY_POLICY_REINSTALL = new NoValueArgumentFactory("-reinstall");\r
34 \r
35     /**\r
36      * An optional argument that forces the default initial value of the\r
37      * workspace shown by the workspace selector to be the location specified\r
38      * with this argument.\r
39      */\r
40     public static final IArgumentFactory<String> DEFAULT_WORKSPACE_LOCATION = new StringArgumentFactory("-defaultWorkspaceLocation");\r
41 \r
42     /**\r
43      * An optional argument that forces the workspace selector to be brought up\r
44      * during startup of the workbench. Needs no extra arguments. To select the\r
45      * workspace location directly, use the standard Eclipse -data argument.\r
46      */\r
47     public static final IArgumentFactory<Boolean> WORKSPACE_CHOOSER = new NoValueArgumentFactory("-workspacechooser");\r
48 \r
49     /**\r
50      * An optional argument that forces the workspace selector to be brought up\r
51      * during startup of the workbench. Needs no extra arguments. To select the\r
52      * workspace location directly, use the standard Eclipse -data argument.\r
53      */\r
54     public static final IArgumentFactory<Boolean> WORKSPACE_NO_REMEMBER = new NoValueArgumentFactory("-workspacenoremember");\r
55 \r
56     /**\r
57      * A mandatory argument because this will be used as the initial perspective\r
58      * of the workbench. The next argument string should be the perspective id.\r
59      */\r
60     public static final IArgumentFactory<String> PERSPECTIVE = new StringArgumentFactory("-perspective");\r
61 \r
62     /**\r
63      * The address of the ProCore server to connect to for getting the model.\r
64      * The address argument must be written in the form:\r
65      * <code>hostname:port</code>.\r
66      */\r
67     public static final IArgumentFactory<String> SERVER = new StringArgumentFactory("-server", AddressValidator.INSTANCE);\r
68 \r
69     /**\r
70      * For specifying the port to be used for a new local server. Only effective\r
71      * when a new database is being initialized, i.e. when a new local workspace\r
72      * is initialized.\r
73      */\r
74     public static final IArgumentFactory<Integer> LOCAL_SERVER_PORT = new IntegerArgumentFactory("-localport", 1, 65535);\r
75 \r
76     /**\r
77      * Indicates that a working copy server is to be initialized from the\r
78      * database server designated by the #SERVER argument.\r
79      */\r
80     public static final IArgumentFactory<Boolean> CHECKOUT = new NoValueArgumentFactory("-checkout");\r
81 \r
82     /**\r
83      * Tells the system to create a new model in the specified project.\r
84      */\r
85     public static final IArgumentFactory<Boolean> NEW_MODEL = new NoValueArgumentFactory("-newmodel");\r
86 \r
87     /**\r
88      * The experiment id of the specified model.\r
89      */\r
90     public static final IArgumentFactory<String> EXPERIMENT = new StringArgumentFactory("-experiment");\r
91     \r
92     /**\r
93      * Disables database indexing (Experimental setting)\r
94      */\r
95     public static final IArgumentFactory<Boolean> DISABLE_INDEX = new NoValueArgumentFactory("-disableIndex");\r
96 \r
97     /**\r
98      * Database ID defining the database implementation to use\r
99      */\r
100     public static final IArgumentFactory<String> DATABASE_ID = new StringArgumentFactory("-databaseId");\r
101 }\r