com.tensegrity.skeleton.swt.commands
Class SwtSaveCommand

java.lang.Object
  extended bycom.tensegrity.generic.command.BaseCommand
      extended bycom.tensegrity.skeleton.commands.CommonBaseCommand
          extended bycom.tensegrity.skeleton.commands.DocumentCommand
              extended bycom.tensegrity.skeleton.commands.GraphDocumentCommand
                  extended bycom.tensegrity.skeleton.commands.SaveVisualGraphCommand
                      extended bycom.tensegrity.skeleton.swt.commands.SwtSaveCommand
All Implemented Interfaces:
Command

public final class SwtSaveCommand
extends SaveVisualGraphCommand

To be used n the context of SWT Applications, this command saves the currently active document to its stored File and uses the SwtSaveAsCommand if no such File exists.

Version:
$Id: SwtSaveCommand.java,v 1.1 2005/06/30 09:24:04 SebastienGuyon Exp $
Author:
S�bastien Guyon
See Also:
SwtDocumentInformationCheck, SwtSaveAsCommand

Constructor Summary
SwtSaveCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Creates a new SwtSaveCommand.
 
Method Summary
 void perform(java.lang.Object args)
          Updates the StatusBar with this commands title string.
 
Methods inherited from class com.tensegrity.skeleton.commands.SaveVisualGraphCommand
isEnabled
 
Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand
getGraphDocument, getVisualGraphView
 
Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand
getDocument, 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

SwtSaveCommand

public SwtSaveCommand(ApplicationFrame applicationFrame,
                      java.lang.String command)
Creates a new SwtSaveCommand.

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

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.