X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.application%2Fsrc%2Forg%2Fsimantics%2Fapplication%2Farguments%2FSimanticsArguments.java;fp=bundles%2Forg.simantics.application%2Fsrc%2Forg%2Fsimantics%2Fapplication%2Farguments%2FSimanticsArguments.java;h=ddad94e5a885fc69e5f1e9d05285b05bda8e350f;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git 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 index 000000000..ddad94e5a --- /dev/null +++ b/bundles/org.simantics.application/src/org/simantics/application/arguments/SimanticsArguments.java @@ -0,0 +1,101 @@ +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.application.arguments; + +import org.simantics.application.arguments.IArgumentFactory.IntegerArgumentFactory; +import org.simantics.application.arguments.IArgumentFactory.NoValueArgumentFactory; +import org.simantics.application.arguments.IArgumentFactory.StringArgumentFactory; + +public final class SimanticsArguments { + + /** + * See SimanticsPlatform#RecoveryPolicy. + */ + public static final IArgumentFactory DO_NOT_SYNCHRONIZE_ONTOLOGIES = new NoValueArgumentFactory("-doNotSynchronizeOntologies"); + + /** + * See SimanticsPlatform#RecoveryPolicy. + */ + public static final IArgumentFactory RECOVERY_POLICY_FIX_ERRORS = new NoValueArgumentFactory("-fixerrors"); + + /** + * See SimanticsPlatform#OntologyRecoveryPolicy. + */ + public static final IArgumentFactory ONTOLOGY_RECOVERY_POLICY_REINSTALL = new NoValueArgumentFactory("-reinstall"); + + /** + * An optional argument that forces the default initial value of the + * workspace shown by the workspace selector to be the location specified + * with this argument. + */ + public static final IArgumentFactory DEFAULT_WORKSPACE_LOCATION = new StringArgumentFactory("-defaultWorkspaceLocation"); + + /** + * An optional argument that forces the workspace selector to be brought up + * during startup of the workbench. Needs no extra arguments. To select the + * workspace location directly, use the standard Eclipse -data argument. + */ + public static final IArgumentFactory WORKSPACE_CHOOSER = new NoValueArgumentFactory("-workspacechooser"); + + /** + * An optional argument that forces the workspace selector to be brought up + * during startup of the workbench. Needs no extra arguments. To select the + * workspace location directly, use the standard Eclipse -data argument. + */ + public static final IArgumentFactory WORKSPACE_NO_REMEMBER = new NoValueArgumentFactory("-workspacenoremember"); + + /** + * A mandatory argument because this will be used as the initial perspective + * of the workbench. The next argument string should be the perspective id. + */ + public static final IArgumentFactory PERSPECTIVE = new StringArgumentFactory("-perspective"); + + /** + * The address of the ProCore server to connect to for getting the model. + * The address argument must be written in the form: + * hostname:port. + */ + public static final IArgumentFactory SERVER = new StringArgumentFactory("-server", AddressValidator.INSTANCE); + + /** + * For specifying the port to be used for a new local server. Only effective + * when a new database is being initialized, i.e. when a new local workspace + * is initialized. + */ + public static final IArgumentFactory LOCAL_SERVER_PORT = new IntegerArgumentFactory("-localport", 1, 65535); + + /** + * Indicates that a working copy server is to be initialized from the + * database server designated by the #SERVER argument. + */ + public static final IArgumentFactory CHECKOUT = new NoValueArgumentFactory("-checkout"); + + /** + * Tells the system to create a new model in the specified project. + */ + public static final IArgumentFactory NEW_MODEL = new NoValueArgumentFactory("-newmodel"); + + /** + * The experiment id of the specified model. + */ + public static final IArgumentFactory EXPERIMENT = new StringArgumentFactory("-experiment"); + + /** + * Disables database indexing (Experimental setting) + */ + public static final IArgumentFactory DISABLE_INDEX = new NoValueArgumentFactory("-disableIndex"); + + /** + * Database ID defining the database implementation to use + */ + public static final IArgumentFactory DATABASE_ID = new StringArgumentFactory("-databaseId"); +}