|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.launch.LaunchTask
com.tensegrity.skeleton.swing.launch.AbstractLaunchTask
com.tensegrity.skeleton.swt.launch.SwtCommandLaunchTask
A LaunchTask which creates all the
Command instances required for a
given application based on the SWT windowing toolkit.
run() method uses the Template Method Design Pattern
in order to make customization of this class easier. It delegates the Commands
creation to the following methods:
doToggleLeftColumnCommand()
doToggleRightColumnCommand()
| Field Summary |
| Fields inherited from class com.tensegrity.gui.launch.LaunchTask |
lasterror, LAUNCHTASKSTATUS_FATAL, LAUNCHTASKSTATUS_FATAL_RETRY, LAUNCHTASKSTATUS_SERIOUS, LAUNCHTASKSTATUS_SERIOUS_RETRY, LAUNCHTASKSTATUS_SHUTDOWN, LAUNCHTASKSTATUS_SUCCESS, LAUNCHTASKSTATUS_WARNING |
| Constructor Summary | |
SwtCommandLaunchTask(ApplicationFrame applicationFrame)
Constructs a new SwtCommandLaunchTask which creates all
the Command of a SWT-based
application. |
|
| Method Summary | |
protected boolean |
contains(java.lang.String lnfName)
This method checks whether a LookAndFeel has already been
installed. |
protected void |
doAboutCommand()
Creates the default AboutCommand Command. |
protected void |
doAlignCommands()
Creates alignment commands. |
protected void |
doCancelCommand()
This generic command should not be replaced |
protected void |
doCloneDocumentCommand()
Creates the default CloneDocumentCommand Command. |
protected void |
doCloseAllCommand()
Creates the default CloseAllCommand Command. |
protected void |
doCloseCommand()
Creates the default CloseCommand Command. |
protected void |
doCopyCommand()
Creates the default CopyCommand Command. |
protected void |
doCutCommand()
Creates the default CutCommand Command. |
protected void |
doDebugCommands()
Creates various commands useful for debug purpose. |
protected void |
doDeleteCommand()
Creates the default DeleteCommand Command. |
protected void |
doEnglishSwitchLanguageCommand()
Creates the default SwitchLanguageCommand (English) Command. |
protected void |
doFindCommand()
Creates the find command which is used to find elements and select them depending on some user defined information |
protected void |
doFitToViewportCommand()
Creates the default FitToViewportCommand Command. |
protected void |
doFloatCommand()
Creates the default doFloatCommand. |
protected void |
doGermanSwitchLanguageCommand()
Creates the default SwitchLanguageCommand (German) Command. |
protected void |
doGroupSelectionCommand()
Creates the default GroupSelectionCommand Command. |
protected void |
doHelpCommand()
Creates the default doHelpCommand Command. |
protected void |
doLayoutCommands()
Initializes all the instances.
|
protected void |
doLoadStylesCommand()
Creates the default LoadStyles Command. |
protected void |
doNewDocumentCommand()
Creates the default NewDocumentCommand Command. |
protected void |
doOpenCommand()
Creates the default OpenCommand Command. |
protected void |
doPageSetupCommand()
Creates the default PageSetupCommand Command. |
protected void |
doPasteCommand()
Creates the default PasteCommand Command. |
protected void |
doPreferencesCommand()
Creates the default PreferencesCommand Command. |
protected void |
doPrintCommand()
Creates the default PrintCommand Command. |
protected void |
doPrintPreviewCommand()
Creates the default PrintPreviewCommand Command. |
protected void |
doQuitCommand()
Creates the default QuitCommand Command. |
protected void |
doRedoCommand()
Creates the default RedoCommand Command. |
protected void |
doSaveAsCommand()
Creates the default SaveAsCommand Command. |
protected void |
doSaveCommand()
Creates the default SwtSaveCommand Command.
|
protected void |
doSaveStylesCommand()
Creates the default SaveStyles Command. |
protected void |
doSelectAllCommand()
Creates the default SelectAllCommand Command. |
protected void |
doShapeFormatCommand()
Creates the default ShapeFormatCommand Command. |
protected void |
doStyleDialogCommand()
Creates the default StyleDialog Command. |
protected void |
doToBackCommand()
Creates the ToBackCommand command. |
protected void |
doToFrontCommand()
Creates the ToFrontCommand command. |
protected void |
doToggleAutomaticLayoutCommand()
Creates the ToggleAutomaticLayoutCommand. |
protected void |
doToggleConnectModeCommand()
Creates the ToggleConnectModeCommand command. |
protected void |
doToggleFullscreenCommand()
Creates the ToggleFullscreenCommand command. |
protected void |
doToggleLeftColumnCommand()
Creates the default
Command.
|
protected void |
doToggleRightColumnCommand()
Creates the default
Command.
|
protected void |
doUndoCommand()
Creates the default UndoCommand Command. |
protected void |
doUngroupSelectionCommand()
Creates the default UngroupSelectionCommand Command. |
protected void |
doViewGridCommand()
Creates the ViewGridCommand Command.
|
protected void |
doViewRulerCommand()
Creates the ViewRulerCommand Command.
|
protected void |
doZoom1000GraphCommand()
Creates the default Zoom1000GraphCommand Command. |
protected void |
doZoom100GraphCommand()
Creates the default Zoom100GraphCommand Command. |
protected void |
doZoom150GraphCommand()
Creates the default Zoom150GraphCommand Command. |
protected void |
doZoom1To1GraphCommand()
Creates the default Zoom1To1GraphCommand Command. |
protected void |
doZoom200GraphCommand()
Creates the default Zoom200GraphCommand Command. |
protected void |
doZoom400GraphCommand()
Creates the default Zoom400GraphCommand Command. |
protected void |
doZoom50GraphCommand()
Creates the default Zoom50GraphCommand Command. |
protected void |
doZoom75GraphCommand()
Creates the default Zoom75GraphCommand Command. |
protected void |
doZoomDialogCommand()
Creates the default ZoomDialogCommand Command. |
protected void |
doZoomInCommand()
Creates the default ZoomInCommand Command. |
protected void |
doZoomOutCommand()
Creates the default ZoomOutCommand Command. |
protected void |
doZoomRectangleCommand()
Creates the default ZoomToRectangle command. |
protected void |
doZoomToFitCommand()
Creates the default ZoomToFitCommand Command. |
protected void |
doZoomToSelectionCommand()
Creates the doZoomToSelectionCommand command. |
protected void |
doZoomXGraphCommand()
Creates the default ZoomGraphCommand Commands. |
void |
postCreate(java.lang.Object object)
This method is invoked once all Command instances have been
created and the run() method is about to return. |
int |
run()
The run method of this launch task. |
| Methods inherited from class com.tensegrity.skeleton.swing.launch.AbstractLaunchTask |
findResourceText, getApplicationFrame, getName, getStatusPrefix, getStatusPrefixResourceKey |
| Methods inherited from class com.tensegrity.gui.launch.LaunchTask |
getError, getStatusDetails |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwtCommandLaunchTask(ApplicationFrame applicationFrame)
SwtCommandLaunchTask which creates all
the Command of a SWT-based
application. This commands can then later be retrieved using the
CommandRegistry of the given
ApplicationFrame.
applicationFrame - The SWT-based application context for this launch task.| Method Detail |
public final int run()
throws java.lang.Exception
LaunchTask
run in class LaunchTaskLAUNCHTASKSTATUS_* constants defined
in this interface.
java.lang.Exceptionprotected void doAlignCommands()
protected void doToBackCommand()
ToBackCommand command.
protected void doToFrontCommand()
ToFrontCommand command.
protected void doToggleConnectModeCommand()
ToggleConnectModeCommand command.
protected final void doCancelCommand()
protected void doToggleFullscreenCommand()
ToggleFullscreenCommand command.
protected void doZoomToSelectionCommand()
doZoomToSelectionCommand command.
protected void doFindCommand()
protected void doNewDocumentCommand()
run() method.
Simply provide an empty implementation if you do not require
a NewDocumentCommand Command or override if you require a custom
NewDocumentCommand.
protected void doOpenCommand()
run() method.
Simply provide an empty implementation if you do not require
a OpenCommand Command or override if you require a custom
OpenCommand.
protected void doCloneDocumentCommand()
run() method.
Simply provide an empty implementation if you do not require
a CloneDocumentCommand Command or override if you require a custom
CloneDocumentCommand.
protected void doCloseCommand()
run() method.
Simply provide an empty implementation if you do not require
a CloseCommand Command or override if you require a custom
CloseCommand.
protected void doCloseAllCommand()
run() method.
Simply provide an empty implementation if you do not require
a CloseCommand Command or override if you require a custom
CloseCommand.
protected void doSaveCommand()
SwtSaveCommand Command.
This method is internally called by the run() method.
Simply provide an empty implementation if you do not require
a SaveCommand Command or override if you require a custom
SaveCommand.
protected void doSaveAsCommand()
run() method.
Simply provide an empty implementation if you do not require
a SaveAsCommand Command or override if you require a custom
SaveAsCommand.
protected void doPageSetupCommand()
run() method.
Simply provide an empty implementation if you do not require
a PageSetupCommand Command or override if you require a custom
PageSetupCommand.
protected void doPrintPreviewCommand()
run() method.
Simply provide an empty implementation if you do not require
a PrintPreviewCommand Command or override if you require a custom
PrintPreviewCommand.
protected void doPrintCommand()
run() method.
Simply provide an empty implementation if you do not require
a PrintCommand Command or override if you require a custom
PrintCommand.
protected void doQuitCommand()
run() method.
Simply provide an empty implementation if you do not require
a QuitCommand Command or override if you require a custom
QuitCommand.
protected void doUndoCommand()
run() method.
Simply provide an empty implementation if you do not require
a UndoCommand Command or override if you require a custom
UndoCommand.
protected void doRedoCommand()
run() method.
Simply provide an empty implementation if you do not require
a RedoCommand Command or override if you require a custom
RedoCommand.
protected void doCutCommand()
run() method.
Simply provide an empty implementation if you do not require
a CutCommand Command or override if you require a custom
CutCommand.
protected void doCopyCommand()
run() method.
Simply provide an empty implementation if you do not require
a CopyCommand Command or override if you require a custom
CopyCommand.
protected void doPasteCommand()
run() method.
Simply provide an empty implementation if you do not require
a PasteCommand Command or override if you require a custom
PasteCommand.
protected void doDeleteCommand()
run() method.
Simply provide an empty implementation if you do not require
a DeleteCommand Command or override if you require a custom
DeleteCommand.
protected void doSelectAllCommand()
run() method.
Simply provide an empty implementation if you do not require
a SelectAllCommand Command or override if you require a custom
SelectAllCommand.
protected void doZoomInCommand()
run() method.
Simply provide an empty implementation if you do not require
a ZoomInCommand Command or override if you require a custom
ZoomInCommand.
protected void doZoomOutCommand()
run() method.
Simply provide an empty implementation if you do not require
a ZoomOutCommand Command or override if you require a custom
ZoomOutCommand.
protected void doZoomToFitCommand()
run() method.
Simply provide an empty implementation if you do not require
a ZoomToFitCommand Command or override if you require a custom
ZoomToFitCommand.
protected void doZoomRectangleCommand()
run() method.
Simply provide an empty implementation if you do not require
a ZoomToRectangle Command or override if you require a custom
ZoomToRectangle.
protected void doZoom1To1GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom1To1GraphCommand Command or override if you require a custom
Zoom1To1GraphCommand.
protected void doZoom50GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom50GraphCommand Command or override if you require a custom
Zoom50GraphCommand.
protected void doZoom75GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom75GraphCommand Command or override if you require a custom
Zoom75GraphCommand.
protected void doZoom100GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom100GraphCommand Command or override if you require a custom
Zoom100GraphCommand.
protected void doZoom150GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom150GraphCommand Command or override if you require a custom
Zoom150GraphCommand.
protected void doZoom200GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom200GraphCommand Command or override if you require a custom
Zoom200GraphCommand.
protected void doZoom400GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom400GraphCommand Command or override if you require a custom
Zoom400GraphCommand.
protected void doZoom1000GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom1000GraphCommand Command or override if you require a custom
Zoom1000GraphCommand.
protected void doZoomXGraphCommand()
run() method.
Simply provide an empty implementation if you do not require
any ZoomGraphCommand Commands.
protected void doZoomDialogCommand()
run() method.
Simply provide an empty implementation if you do not require
a ZoomDialogCommand Command or override if you require a custom
ZoomDialogCommand.
protected void doShapeFormatCommand()
run() method.
Simply provide an empty implementation if you do not require
a ShapeFormatCommand Command or override if you require a custom
ShapeFormatCommand.
protected boolean contains(java.lang.String lnfName)
LookAndFeel has already been
installed. Thus it takes the parameter String and compares it to all currently
installed LNF's by using the
UIManager#getInstalledLookAndFeels() method.
lnfName - the name of a LookAndFeel to look up.
protected void doGroupSelectionCommand()
run() method.
Simply provide an empty implementation if you do not require
a GroupSelectionCommand or override if you require a custom
GroupSelectionCommand.
protected void doUngroupSelectionCommand()
run() method.
Simply provide an empty implementation if you do not require
a UngroupSelectionCommand or override if you require a custom
UngroupSelectionCommand.
protected void doGermanSwitchLanguageCommand()
run() method.
Simply provide an empty implementation if you do not require
a SwitchLanguageCommand (German) Command or override if you require a custom
SwitchLanguageCommand (German).
protected void doEnglishSwitchLanguageCommand()
run() method.
Simply provide an empty implementation if you do not require
a SwitchLanguageCommand (English) Command or override if you require a custom
SwitchLanguageCommand (English).
protected void doStyleDialogCommand()
run() method.
Simply provide an empty implementation if you do not require
a PreferencesCommand Command or override if you require a custom
PreferencesCommand.
protected void doSaveStylesCommand()
run() method.
Simply provide an empty implementation if you do not require
a PreferencesCommand Command or override if you require a custom
PreferencesCommand.
protected void doLoadStylesCommand()
run() method.
Simply provide an empty implementation if you do not require
a PreferencesCommand Command or override if you require a custom
PreferencesCommand.
protected void doPreferencesCommand()
run() method.
Simply provide an empty implementation if you do not require
a PreferencesCommand Command or override if you require a custom
PreferencesCommand.
protected void doAboutCommand()
run() method.
Simply provide an empty implementation if you do not require
a AboutCommand Command or override if you require a custom
AboutCommand.
protected void doFitToViewportCommand()
run() method.
Simply provide an empty implementation if you do not require
a FitToViewportCommand Command or override if you require a custom
FitToViewportCommand.
protected void doFloatCommand()
run() method.
Simply provide an empty implementation if you do not require
a doFloatCommand or override if you require a custom
doFloatCommand .
protected void doHelpCommand()
run() method.
Simply provide an empty implementation if you do not require
a doHelpCommand Command or override if you require a custom
doHelpCommand.
protected void doDebugCommands()
DebugApplicationCommand,
DebugGraphCommandprotected void doToggleLeftColumnCommand()
ToggleLeftColumnCommand
Command.
This method is internally called by the run()
method.
Simply provide an empty implementation if you do not require a ToggleLeftColumnCommand
Command or override if you require a custom ToggleLeftColumnCommand.
protected void doToggleRightColumnCommand()
ToggleRightColumnCommand
Command.
This method is internally called by the run()
method.
Simply provide an empty implementation if you do not require a ToggleRightColumnCommand
Command or override if you require a custom ToggleRightColumnCommand.
protected void doToggleAutomaticLayoutCommand()
ToggleAutomaticLayoutCommand.
protected void doViewRulerCommand()
ViewRulerCommand Command.
This method is internally called by the run() method.
protected void doViewGridCommand()
ViewGridCommand Command.
This method is internally called by the run() method.
protected void doLayoutCommands()
Initializes all the instances.
LayoutCommand
public void postCreate(java.lang.Object object)
Command instances have been
created and the run() method is about to return. The parameter
object is the CommandRegistry of
the underlying application.
postCreate in class AbstractLaunchTaskobject - the CommandRegistry of
the underlying application.AbstractLaunchTask.postCreate(Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||