Package ptolemy.actor.gui
Class MoMLApplication
- java.lang.Object
-
- ptolemy.actor.gui.ConfigurationApplication
-
- ptolemy.actor.gui.MoMLApplication
-
- All Implemented Interfaces:
ExecutionListener
- Direct Known Subclasses:
PtExecuteApplication
,PtolemyApplication
,VergilApplication
public class MoMLApplication extends ConfigurationApplication
An application that sets the look and feel to the native look and feel and then reads one or more files specified on the command line, or instantiates one or more Java classes specified by the -class option.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.- Since:
- Ptolemy II 0.4
- Version:
- $Id$
- Author:
- Edward A. Lee and Steve Neuendorffer, Contributor: Christopher Hylands
- See Also:
Configuration
- Pt.AcceptedRating:
- Red (eal)
- Pt.ProposedRating:
- Yellow (eal)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.actor.gui.ConfigurationApplication
ConfigurationApplication.IgnoreErrorHandler
-
-
Field Summary
-
Fields inherited from class ptolemy.actor.gui.ConfigurationApplication
_basePath, _commandFlagsWithDescriptions, _commandOptions, _commandTemplate, _configuration, _exit, _parser, _printPDF, _run, _run20x, _statistics, _test
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_initializeApplication()
Set the look and feel to the native look and feel.-
Methods inherited from class ptolemy.actor.gui.ConfigurationApplication
_configurationUsage, _configurationUsage, _createDefaultConfiguration, _createEmptyConfiguration, _openModel, _openModel, _parseArg, _parseArgs, _printPDF, _readConfiguration, _usage, closeModelWithoutSavingOrExiting, configurationDirectories, configurationDirectoryFullOrFirst, executionError, executionFinished, getActiveCount, main, managerStateChanged, models, openModel, openModelOrEntity, readConfiguration, runModels, setActiveCount, specToURL, throwArgsException, waitForFinish
-
-
-
-
Constructor Detail
-
MoMLApplication
public MoMLApplication(java.lang.String[] args) throws java.lang.Exception
Parse the specified command-line arguments, instantiating classes and reading files that are specified.- Parameters:
args
- The command-line arguments.- Throws:
java.lang.Exception
- If command line arguments have problems.
-
MoMLApplication
public MoMLApplication(java.lang.String basePath, java.lang.String[] args) throws java.lang.Exception
Parse the specified command-line arguments, instantiating classes and reading files that are specified.- Parameters:
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.- Throws:
java.lang.Exception
- If command line arguments have problems.
-
MoMLApplication
public MoMLApplication(java.lang.String basePath, java.lang.String[] args, MessageHandler messageHandler, ErrorHandler errorHandler) throws java.lang.Exception
Parse the specified command-line arguments, instantiating classes and reading files that are specified.- Parameters:
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.- Throws:
java.lang.Exception
- If command line arguments have problems.
-
-
Method Detail
-
_initializeApplication
protected void _initializeApplication()
Set the look and feel to the native look and feel. This method is called by early in the constructor, so the object may not be completely constructed, so derived classes should not access fields from a parent class.- Overrides:
_initializeApplication
in classConfigurationApplication
-
-