com.tensegrity.skeleton.commands
Class EditDocumentSettingsCommand
java.lang.Object
com.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.DocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentCommand
com.tensegrity.skeleton.commands.EditDocumentSettingsCommand
- All Implemented Interfaces:
- Command
- public class EditDocumentSettingsCommand
- extends GraphDocumentCommand
EditDocumentSettingsCommand shows a dialog for editing the
document settings. The settings that will be available to the user can be
defined in an XML in the same way as for the preferences.
- Author:
- BurkhardWick
|
Field Summary |
protected java.lang.String |
documentPrefsUrl
The url of the default document preferences |
protected java.lang.Class |
refClass
The reference class used to load the defaults |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
documentPrefsUrl
protected final java.lang.String documentPrefsUrl
- The url of the default document preferences
refClass
protected final java.lang.Class refClass
- The reference class used to load the defaults
EditDocumentSettingsCommand
public EditDocumentSettingsCommand(ApplicationFrame applicationFrame,
java.lang.String command,
java.lang.String documentPrefsUrl,
java.lang.Class refClass)
- Constructor
- Parameters:
applicationFrame - The application framecommand - The id to register this command withdocumentPrefsUrl - The url of the default document preferencesrefClass - The reference class used to load the defaults
perform
public final void perform(java.lang.Object args)
- Description copied from class:
CommonBaseCommand
- Updates the StatusBar with this commands title string.
(non-Javadoc)
- Specified by:
perform in interface Command- Overrides:
perform in class CommonBaseCommand
- See Also:
Command.perform(java.lang.Object)
getDocumentSettingsProvider
protected DocumentSettingsProvider getDocumentSettingsProvider()
throws java.lang.Exception
- Creates an instanceof
DocumentSettingsProvider that will be
used in the dialog.
- Returns:
- the
DocumentSettingsProvider to use
- Throws:
java.lang.Exception - if the creation of the instance fails
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.