org.eclipse.gmt.umlx.editor.commands
Class MoveBendpointCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.eclipse.gmt.umlx.editor.command.AbstractCommand
org.eclipse.gmt.umlx.editor.commands.AbstractModelCommand<M>
org.eclipse.gmt.umlx.editor.commands.AbstractChangeCommand<GLinkElement>
org.eclipse.gmt.umlx.editor.commands.MoveBendpointCommand
- All Implemented Interfaces:
- IAbstractCommand
public class MoveBendpointCommand
- extends AbstractChangeCommand<GLinkElement>
Bendpoint manipulation commands cannot be chained or compounded.
Method Summary |
boolean |
canExecute()
|
void |
doRedo()
(re)-execute the command. |
void |
doUndo()
un-execute the command. |
Methods inherited from class org.eclipse.gmt.umlx.editor.command.AbstractCommand |
canUndo, couldNotUnlock, diagnoseCannotExecute, dispose, execute, getCommand, prepare, prepare, redo, requestModification, undo |
Methods inherited from class org.eclipse.gef.commands.Command |
chain, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MoveBendpointCommand
public MoveBendpointCommand(GLinkElement model,
org.eclipse.draw2d.geometry.Point location,
int index)
canExecute
public boolean canExecute()
- Specified by:
canExecute
in interface IAbstractCommand
- Overrides:
canExecute
in class AbstractCommand
doRedo
public void doRedo()
- Description copied from class:
AbstractCommand
- (re)-execute the command.
doUndo
public void doUndo()
- Description copied from class:
AbstractCommand
- un-execute the command.