org.topcased.modeler.commands
Class ChangeDiagramElementPropertyCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.topcased.modeler.commands.ChangeDiagramElementPropertyCommand
public class ChangeDiagramElementPropertyCommand
- extends org.eclipse.gef.commands.Command
That command is used to change a Property of a DiagramElement
Creation 25 oct. 06
| Methods inherited from class org.eclipse.gef.commands.Command |
canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChangeDiagramElementPropertyCommand
public ChangeDiagramElementPropertyCommand(DiagramElement diagElt,
java.lang.String propKey,
java.lang.String newPropValue)
- Constructor
- Parameters:
diagElt - the DiagramElementpropKey - the Property Key used to identify it between all the
available properties of the DiagramElementnewPropValue - the new Property value
canExecute
public boolean canExecute()
- Overrides:
canExecute in class org.eclipse.gef.commands.Command
- See Also:
Command.canExecute()
execute
public void execute()
- Overrides:
execute in class org.eclipse.gef.commands.Command
- See Also:
Command.execute()
redo
public void redo()
- Overrides:
redo in class org.eclipse.gef.commands.Command
- See Also:
Command.redo()
undo
public void undo()
- Overrides:
undo in class org.eclipse.gef.commands.Command
- See Also:
Command.undo()
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.