public class MoMLApplication extends ConfigurationApplication
This class sets the look and feel of the user interface (UI) to
the native look and feel. Thus, this class invokes Java's user
interface code which means that this class should be run in an
environment that has a display. To run in a environment
that has no display, see the ConfigurationApplication
parent class.
For complete usage, see the ConfigurationApplication
parent class.
Configuration
Red (eal) |
Yellow (eal) |
ConfigurationApplication.ConfigurationFilenameFilter, ConfigurationApplication.IgnoreErrorHandler
_basePath, _commandFlagsWithDescriptions, _commandOptions, _commandTemplate, _configuration, _exit, _parser, _printPDF, _run, _run20x, _statistics, _test
Constructor and Description |
---|
MoMLApplication(java.lang.String[] args)
Parse the specified command-line arguments, instantiating classes
and reading files that are specified.
|
MoMLApplication(java.lang.String basePath,
java.lang.String[] args)
Parse the specified command-line arguments, instantiating classes
and reading files that are specified.
|
MoMLApplication(java.lang.String basePath,
java.lang.String[] args,
MessageHandler messageHandler,
ErrorHandler errorHandler)
Parse the specified command-line arguments, instantiating classes
and reading files that are specified.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_initializeApplication()
Set the look and feel to the native look and feel.
|
_configurationUsage, _configurationUsage, _createDefaultConfiguration, _createEmptyConfiguration, _openModel, _openModel, _parseArg, _parseArgs, _printPDF, _readConfiguration, _usage, closeModelWithoutSavingOrExiting, executionError, executionFinished, main, managerStateChanged, models, openModel, openModelOrEntity, readConfiguration, runModels, specToURL, throwArgsException, waitForFinish
public MoMLApplication(java.lang.String[] args) throws java.lang.Exception
args
- The command-line arguments.java.lang.Exception
- If command line arguments have problems.public MoMLApplication(java.lang.String basePath, java.lang.String[] args) throws java.lang.Exception
basePath
- The basePath to look for configurations
in, usually "ptolemy/configs", but other tools might
have other configurations in other directoriesargs
- The command-line arguments.java.lang.Exception
- If command line arguments have problems.public MoMLApplication(java.lang.String basePath, java.lang.String[] args, MessageHandler messageHandler, ErrorHandler errorHandler) throws java.lang.Exception
basePath
- The basePath to look for configurations
in, usually "ptolemy/configs", but other tools might
have other configurations in other directoriesargs
- The command-line arguments.messageHandler
- The message handler.errorHandler
- The MoML error handler.java.lang.Exception
- If command line arguments have problems.protected void _initializeApplication()
_initializeApplication
in class ConfigurationApplication