X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.application%2Fsrc%2Forg%2Fsimantics%2Fapplication%2Farguments%2FSimanticsArguments.java;h=f6e1f7c43f624362e2bc5c89e5679d416235c276;hp=ddad94e5a885fc69e5f1e9d05285b05bda8e350f;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 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 index ddad94e5a..f6e1f7c43 100644 --- a/bundles/org.simantics.application/src/org/simantics/application/arguments/SimanticsArguments.java +++ b/bundles/org.simantics.application/src/org/simantics/application/arguments/SimanticsArguments.java @@ -1,101 +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"); -} +/******************************************************************************* + * 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"); +}