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