|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.swt.commands.SwtCommonBaseCommand
com.tensegrity.skeleton.swt.commands.SwtDocumentCommand
com.tensegrity.skeleton.swt.commands.SwtCloseAllCommand
This command, to be used within applications in a SWT context, closes all currently opened documents.
| Constructor Summary | |
SwtCloseAllCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Creates the command used to close all open documents. |
|
| Method Summary | |
boolean |
isEnabled()
Returns false if SwtDocumentCommand.getDocument() returns
null, true otherwise. |
void |
perform(java.lang.Object args)
Updates the StatusBar with this commands title string. |
| Methods inherited from class com.tensegrity.skeleton.swt.commands.SwtDocumentCommand |
getDocument |
| Methods inherited from class com.tensegrity.skeleton.swt.commands.SwtCommonBaseCommand |
getGraphApplication, newGraphDocumentFromFactory |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame, getTitle |
| Methods inherited from class com.tensegrity.generic.command.BaseCommand |
getDescription, getId, getPerformDescription, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwtCloseAllCommand(ApplicationFrame applicationFrame,
java.lang.String command)
applicationFrame - Application context for this command.command - the ID of this command.| Method Detail |
public boolean isEnabled()
SwtDocumentCommandfalse if SwtDocumentCommand.getDocument() returns
null, true otherwise.
isEnabled in interface CommandisEnabled in class SwtDocumentCommandfalse if SwtDocumentCommand.getDocument() returns
null, true otherwise.Command.isEnabled()public void perform(java.lang.Object args)
CommonBaseCommand
perform in interface Commandperform in class CommonBaseCommandCommand.perform(java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||