thales.vergil
Class SingleWindowApplication
java.lang.Object
ptolemy.actor.gui.MoMLApplication
ptolemy.vergil.VergilApplication
thales.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:
- Proposed Rating:
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_mainFrame
public static SingleWindowHTMLViewer _mainFrame
SingleWindowApplication
public SingleWindowApplication(java.lang.String[] args)
throws java.lang.Exception
- Parameters:
args -
- Throws:
java.lang.Exception
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.