com.tensegrity.skeleton.swt.commands
Class SwtEditGraphDocumentCommand
java.lang.Object
com.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.SwtGraphDocumentCommand
com.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
|
Method Summary |
boolean |
isEnabled()
Returns true only if the active grap document, if there is
one, is editable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.