thales.vergil
Class SingleWindowApplication

java.lang.Object
  extended byptolemy.actor.gui.MoMLApplication
      extended byptolemy.vergil.VergilApplication
          extended bythales.vergil.SingleWindowApplication

public class SingleWindowApplication
extends VergilApplication

Main entry point for the SingleWindow mode.

Since:
Version:
$Id: SingleWindowApplication.java,v 1.16 2004/04/13 19:05:41 cxh Exp $
Author:
Jérôme Blanc & Benoit Masson, Thales Research and technology, 12 nov. 2003
Accepted Rating:
Red (cxh)
Proposed Rating:
Yellow (jerome.blanc)

Field Summary
static SingleWindowHTMLViewer _mainFrame
           
 
Fields inherited from class ptolemy.vergil.VergilApplication
_commandOptions
 
Fields inherited from class ptolemy.actor.gui.MoMLApplication
_basePath, _commandFlags, _commandTemplate, _config, _parser, _test
 
Constructor Summary
SingleWindowApplication(java.lang.String[] args)
           
 
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, which in this case is given by the default configuration augmented by the MoML file _basePath/vergilWelcomeWindow.xml.
static void main(java.lang.String[] args)
          Create a new instance of this application, passing it the command-line arguments.
 
Methods inherited from class ptolemy.vergil.VergilApplication
_parseArgs, _usage, openLibrary
 
Methods inherited from class ptolemy.actor.gui.MoMLApplication
_configurationUsage, _parseArg, _readConfiguration, specToURL
 
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
Constructor Detail

SingleWindowApplication

public SingleWindowApplication(java.lang.String[] args)
                        throws java.lang.Exception
Parameters:
args -
Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
Description copied from class: VergilApplication
Create a new instance of this application, passing it the command-line arguments.


_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, which in this case is given by the default configuration augmented by the MoML file _basePath/vergilWelcomeWindow.xml.

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.