com.tensegrity.skeleton.swt.commands
Class SwtInsertCustomAttributesCommand
java.lang.Object
com.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.DocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentCommand
com.tensegrity.skeleton.commands.EditGraphDocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentSelectionCommand
com.tensegrity.skeleton.swt.commands.SwtInsertCustomAttributesCommand
- All Implemented Interfaces:
- Command
- public class SwtInsertCustomAttributesCommand
- extends GraphDocumentSelectionCommand
The SwtInsertCustomAttributesCommand opens a dialog to create
attributes of various types and add these to a list of elements or the graph.
If there is a selection within the document, the attributes will be added
to them. Is there no selection the attributes are applied to the graph itself.
- Version:
- $Id: SwtInsertCustomAttributesCommand.java,v 1.3 2005/12/15 12:21:11 MichaelKegel Exp $
- Author:
- ArndHouben
|
Method Summary |
boolean |
isEnabled()
Checks if there is something selected in the current document. |
void |
perform(java.lang.Object args)
Updates the StatusBar with this commands title string.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwtInsertCustomAttributesCommand
public SwtInsertCustomAttributesCommand(ApplicationFrame applicationFrame,
java.lang.String command)
- Creates a new
SwtInsertCustomAttributesCommand.
- Parameters:
applicationFrame - the enclosing Application instance.command - the id for the command.
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)
isEnabled
public boolean isEnabled()
- Description copied from class:
GraphDocumentSelectionCommand
- Checks if there is something selected in the current document.
- Specified by:
isEnabled in interface Command- Overrides:
isEnabled in class GraphDocumentSelectionCommand
- See Also:
EditGraphDocumentCommand.isEnabled()
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.