thales.vergil
Class SingleWindowApplication

java.lang.Object
  extended by ptolemy.actor.gui.ConfigurationApplication
      extended by ptolemy.actor.gui.MoMLApplication
          extended by ptolemy.vergil.VergilApplication
              extended by thales.vergil.SingleWindowApplication
All Implemented Interfaces:
ExecutionListener

public class SingleWindowApplication
extends VergilApplication

Main entry point for the SingleWindow mode.

Since:
Version:
$Id: SingleWindowApplication.java 47482 2007-12-06 18:33:55Z cxh $
Author:
Jérôme Blanc & Benoit Masson, Thales Research and technology, 12 nov. 2003
Accepted Rating:
Red (cxh)
Proposed Rating:
Yellow (jerome.blanc)

Nested Class Summary
 
Nested classes/interfaces inherited from class ptolemy.actor.gui.ConfigurationApplication
ConfigurationApplication.IgnoreErrorHandler
 
Field Summary
static SingleWindowHTMLViewer _mainFrame
          The main frame.
 
Fields inherited from class ptolemy.vergil.VergilApplication
_commandOptions
 
Fields inherited from class ptolemy.actor.gui.ConfigurationApplication
_basePath, _commandFlagsWithDescriptions, _commandTemplate, _configuration, _exit, _parser, _printPDF, _run, _statistics, _test
 
Constructor Summary
SingleWindowApplication(java.lang.String[] args)
          Construct a single window application.
 
Method Summary
protected  Configuration _createDefaultConfiguration()
          Return a default Configuration.
protected  Configuration _createEmptyConfiguration()
          Return a default Configuration to use when there are no command-line arguments.
static void main(java.lang.String[] args)
          Create a single window application.
 
Methods inherited from class ptolemy.vergil.VergilApplication
_parseArgs, _usage, errorAndExit, openLibrary
 
Methods inherited from class ptolemy.actor.gui.MoMLApplication
_initializeApplication
 
Methods inherited from class ptolemy.actor.gui.ConfigurationApplication
_configurationUsage, _configurationUsage, _openModel, _openModel, _parseArg, _printPDF, _readConfiguration, executionError, executionFinished, managerStateChanged, models, readConfiguration, runModels, specToURL, throwArgsException, waitForFinish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_mainFrame

public static SingleWindowHTMLViewer _mainFrame
The main frame.

Constructor Detail

SingleWindowApplication

public SingleWindowApplication(java.lang.String[] args)
                        throws java.lang.Exception
Construct a single window application.

Parameters:
args - Arguments to pass to VergilApplication.VergilApplication(String[]).
Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
Create a single window application.

Parameters:
args - Arguments to pass to VergilApplication.VergilApplication(String[]).

_createDefaultConfiguration

protected Configuration _createDefaultConfiguration()
                                             throws java.lang.Exception
Description copied from class: VergilApplication
Return a default Configuration. The initial default configuration is the MoML file full/configuration.xml under the _basePath directory, which is usually ptolemy/configs. using different command line arguments can change the value Usually, we also open the user library, which is located in the directory returned by StringUtilities.preferencesDirectory() If the configuration contains a top level Parameter named _hideUserLibrary, then we do not open the user library.

Overrides:
_createDefaultConfiguration in class VergilApplication
Returns:
A default configuration.
Throws:
java.lang.Exception - If the configuration cannot be opened.

_createEmptyConfiguration

protected Configuration _createEmptyConfiguration()
                                           throws java.lang.Exception
Description copied from class: VergilApplication
Return a default Configuration to use when there are no command-line arguments. If the configuration contains a parameter _applicationBlankPtolemyEffigyAtStartup then we create an empty up an empty PtolemyEffigy.

Overrides:
_createEmptyConfiguration in class VergilApplication
Returns:
A configuration for when there no command-line arguments.
Throws:
java.lang.Exception - If the configuration cannot be opened.