com.tensegrity.skeleton.swt.commands
Class SwtEditGraphDocumentCommand

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.SwtGraphDocumentCommand
                      extended bycom.tensegrity.skeleton.swt.commands.SwtEditGraphDocumentCommand
All Implemented Interfaces:
Command

public abstract class SwtEditGraphDocumentCommand
extends SwtGraphDocumentCommand

This abstract Command is intented to be used as based class for Commands which are only valid if the active graph document is editable.

The isEnabled() method returns true only if the active grap document, if there is one, is editable.

Version:
$Id: SwtEditGraphDocumentCommand.java,v 1.3 2005/08/02 06:20:15 SebastienGuyon Exp $
Author:
GillesIachelini, S�bastien Guyon

Constructor Summary
SwtEditGraphDocumentCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Creates the SwtEditGraphDocumentCommand.
 
Method Summary
 boolean isEnabled()
          Returns true only if the active grap document, if there is one, is editable.
 
Methods inherited from class com.tensegrity.skeleton.swt.commands.SwtGraphDocumentCommand
getGraphDocument, getVisualGraphView
 
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, perform
 
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

SwtEditGraphDocumentCommand

public SwtEditGraphDocumentCommand(ApplicationFrame applicationFrame,
                                   java.lang.String command)
Creates the SwtEditGraphDocumentCommand.

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

isEnabled

public boolean isEnabled()
Returns true only if the active grap document, if there is one, is editable.

Specified by:
isEnabled in interface Command
Overrides:
isEnabled in class SwtGraphDocumentCommand
Returns:
true only if the active grap document, if there is one, is editable.
See Also:
BaseCommand.isEnabled(), CompositeView.MODE_MASK_EDITING_ALLOWED


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