public class BasicWorkflowRunnerApplication extends AbstractCLIApplication
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.resource.Resource |
modelResource |
DEFAULT_HELP_WIDTH, err, ERROR_NO, ERROR_UNSPECIFIED, out
Constructor and Description |
---|
BasicWorkflowRunnerApplication() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.core.runtime.IProgressMonitor |
createProgressMonitor() |
protected BasicWorkflowRunnerOperation |
createWorkflowRunnerOperation(java.lang.Object workflow) |
protected void |
defineOptions()
Returns the set of command line
option s to be used for parsing the application arguments. |
protected java.lang.String |
getCommandLineSyntax()
Returns the command line syntax for this
application . |
protected org.eclipse.emf.common.util.URI |
getModelURI(java.lang.String modelOptionValue) |
protected java.lang.Object |
getWorkflow(java.lang.String workflowOptionValue) |
protected java.lang.Object |
interrogate()
Implements the interrogation stage that is invoked after the parsing stage analyzing the command line options.
|
addOption, createParser, getApplicationArgs, getApplicationDescription, getApplicationName, getCommandLine, getOptions, getParser, handleError, isHelpNeeded, parse, printHelp, run, setErrorStream, setOutputStream, start, stop
protected java.lang.String getCommandLineSyntax()
AbstractCLIApplication
application
. Is expected to include
relevant Eclipse runtime options, application id, and arguments but not a detailed description of the command
line options. The latter is automatically added upon printing the application's help with AbstractCLIApplication.printHelp()
.
E.g.,
eclipse -noSplash -data-application org.example.cli.SomeApplication [options] file
getCommandLineSyntax
in class AbstractCLIApplication
AbstractCLIApplication.printHelp()
protected void defineOptions()
AbstractCLIApplication
option
s to be used for parsing the application arguments. The
command line usage help option is supported by default.
Clients should override this method to provide their own command line options.
defineOptions
in class AbstractCLIApplication
http://commons.apache.org/cli/usage.html
protected java.lang.Object interrogate() throws java.lang.Throwable
AbstractCLIApplication
application
's semantics according to the command line
options that have been detected in the application arguments needs to be defined. The semantics for the command
line usage help option is implemented by default.
Clients should override this method to implement the semantics for their own command line options.
interrogate
in class AbstractCLIApplication
java.lang.Throwable
AbstractCLIApplication.defineOptions()
,
http://commons.apache.org/cli/usage.html
protected java.lang.Object getWorkflow(java.lang.String workflowOptionValue) throws java.lang.ClassNotFoundException, java.io.FileNotFoundException
java.lang.ClassNotFoundException
java.io.FileNotFoundException
protected org.eclipse.emf.common.util.URI getModelURI(java.lang.String modelOptionValue)
protected BasicWorkflowRunnerOperation createWorkflowRunnerOperation(java.lang.Object workflow)
protected org.eclipse.core.runtime.IProgressMonitor createProgressMonitor()