org.eclipse.gmt.umlx.editor.commands
Class ChangeVarNameCommand
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<org.eclipse.emf.ocl.expressions.VariableDeclaration,java.lang.String>
org.eclipse.gmt.umlx.editor.commands.ChangeVarNameCommand
- All Implemented Interfaces:
- IAbstractCommand
public class ChangeVarNameCommand
- extends ChangeValueCommand<org.eclipse.emf.ocl.expressions.VariableDeclaration,java.lang.String>
Constructor Summary |
ChangeVarNameCommand(org.eclipse.emf.ocl.expressions.VariableDeclaration model,
java.lang.String newValue)
|
Method Summary |
java.lang.String |
getValue(org.eclipse.emf.ocl.expressions.VariableDeclaration model)
|
void |
setValue(org.eclipse.emf.ocl.expressions.VariableDeclaration model,
java.lang.String value)
|
Methods inherited from class org.eclipse.gmt.umlx.editor.command.AbstractCommand |
canExecute, 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 |
ChangeVarNameCommand
public ChangeVarNameCommand(org.eclipse.emf.ocl.expressions.VariableDeclaration model,
java.lang.String newValue)
getValue
public java.lang.String getValue(org.eclipse.emf.ocl.expressions.VariableDeclaration model)
- Specified by:
getValue
in class ChangeValueCommand<org.eclipse.emf.ocl.expressions.VariableDeclaration,java.lang.String>
setValue
public void setValue(org.eclipse.emf.ocl.expressions.VariableDeclaration model,
java.lang.String value)
- Specified by:
setValue
in class ChangeValueCommand<org.eclipse.emf.ocl.expressions.VariableDeclaration,java.lang.String>