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
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.application.arguments;
\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
18 public final class SimanticsArguments {
\r
21 * See SimanticsPlatform#RecoveryPolicy.
\r
23 public static final IArgumentFactory<Boolean> DO_NOT_SYNCHRONIZE_ONTOLOGIES = new NoValueArgumentFactory("-doNotSynchronizeOntologies");
\r
26 * See SimanticsPlatform#RecoveryPolicy.
\r
28 public static final IArgumentFactory<Boolean> RECOVERY_POLICY_FIX_ERRORS = new NoValueArgumentFactory("-fixerrors");
\r
31 * See SimanticsPlatform#OntologyRecoveryPolicy.
\r
33 public static final IArgumentFactory<Boolean> ONTOLOGY_RECOVERY_POLICY_REINSTALL = new NoValueArgumentFactory("-reinstall");
\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
40 public static final IArgumentFactory<String> DEFAULT_WORKSPACE_LOCATION = new StringArgumentFactory("-defaultWorkspaceLocation");
\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
47 public static final IArgumentFactory<Boolean> WORKSPACE_CHOOSER = new NoValueArgumentFactory("-workspacechooser");
\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
54 public static final IArgumentFactory<Boolean> WORKSPACE_NO_REMEMBER = new NoValueArgumentFactory("-workspacenoremember");
\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
60 public static final IArgumentFactory<String> PERSPECTIVE = new StringArgumentFactory("-perspective");
\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
67 public static final IArgumentFactory<String> SERVER = new StringArgumentFactory("-server", AddressValidator.INSTANCE);
\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
74 public static final IArgumentFactory<Integer> LOCAL_SERVER_PORT = new IntegerArgumentFactory("-localport", 1, 65535);
\r
77 * Indicates that a working copy server is to be initialized from the
\r
78 * database server designated by the #SERVER argument.
\r
80 public static final IArgumentFactory<Boolean> CHECKOUT = new NoValueArgumentFactory("-checkout");
\r
83 * Tells the system to create a new model in the specified project.
\r
85 public static final IArgumentFactory<Boolean> NEW_MODEL = new NoValueArgumentFactory("-newmodel");
\r
88 * The experiment id of the specified model.
\r
90 public static final IArgumentFactory<String> EXPERIMENT = new StringArgumentFactory("-experiment");
\r
93 * Disables database indexing (Experimental setting)
\r
95 public static final IArgumentFactory<Boolean> DISABLE_INDEX = new NoValueArgumentFactory("-disableIndex");
\r
98 * Database ID defining the database implementation to use
\r
100 public static final IArgumentFactory<String> DATABASE_ID = new StringArgumentFactory("-databaseId");
\r