com.tensegrity.skeleton.swt.commands
Class SwtCloseAllCommand

java.lang.Object
  extended bycom.tensegrity.generic.command.BaseCommand
      extended bycom.tensegrity.skeleton.commands.CommonBaseCommand
          extended bycom.tensegrity.skeleton.swt.commands.SwtCommonBaseCommand
              extended bycom.tensegrity.skeleton.swt.commands.SwtDocumentCommand
                  extended bycom.tensegrity.skeleton.swt.commands.SwtCloseAllCommand
All Implemented Interfaces:
Command

public final class SwtCloseAllCommand
extends SwtDocumentCommand

This command, to be used within applications in a SWT context, closes all currently opened documents.

Version:
$Id: SwtCloseAllCommand.java,v 1.5 2005/08/01 09:32:59 SebastienGuyon Exp $
Author:
S�bastien Guyon

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

SwtCloseAllCommand

public SwtCloseAllCommand(ApplicationFrame applicationFrame,
                          java.lang.String command)
Creates the command used to close all open documents.

Parameters:
applicationFrame - Application context for this command.
command - the ID of this command.
Method Detail

isEnabled

public boolean isEnabled()
Description copied from class: SwtDocumentCommand
Returns false if SwtDocumentCommand.getDocument() returns null, true otherwise.

Specified by:
isEnabled in interface Command
Overrides:
isEnabled in class SwtDocumentCommand
Returns:
false if SwtDocumentCommand.getDocument() returns null, true otherwise.
See Also:
Command.isEnabled()

perform

public 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)


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.