org.eclipse.gmt.umlx.editor.commands
Class ChangeIdCommand
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<M>
org.eclipse.gmt.umlx.editor.commands.ChangeValueCommand<GDiagram,java.lang.String>
org.eclipse.gmt.umlx.editor.commands.ChangeIdCommand
- All Implemented Interfaces:
- IAbstractCommand
public class ChangeIdCommand
- extends ChangeValueCommand<GDiagram,java.lang.String>
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 |
ChangeIdCommand
public ChangeIdCommand(GDiagram model,
java.lang.String newValue)
canExecute
public boolean canExecute()
- Specified by:
canExecute
in interface IAbstractCommand
- Overrides:
canExecute
in class AbstractCommand
getValue
public java.lang.String getValue(GDiagram model)
- Specified by:
getValue
in class ChangeValueCommand<GDiagram,java.lang.String>
setValue
public void setValue(GDiagram model,
java.lang.String value)
- Specified by:
setValue
in class ChangeValueCommand<GDiagram,java.lang.String>