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