org.eclipse.gmt.umlx.editor.commands
Class ChangeValueCommand<M,V>
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<M,V>
- All Implemented Interfaces:
- IAbstractCommand
- Direct Known Subclasses:
- ChangeContextCommand, ChangeDomainTypeCommand, ChangeEvolutionInstanceCommand, ChangeExpressionValueCommand, ChangeIdCommand, ChangeLockCommand, ChangeMappingInstanceCommand, ChangeNameCommand, ChangeOCLExpressionCommand, ChangeReadOnlyCommand, ChangeRelationInstanceCommand, ChangeTextCommand, ChangeTypeCommand, ChangeUsedAttributeCommand, ChangeUsedClassCommand, ChangeUsedClassifierCommand, ChangeUsedDomainCommand, ChangeUsedPackageCommand, ChangeVarNameCommand
public abstract class ChangeValueCommand<M,V>
- extends AbstractChangeCommand<M>
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 |
ChangeValueCommand
public ChangeValueCommand(java.lang.String label,
M model,
V newValue)
doRedo
public final void doRedo()
- Description copied from class:
AbstractCommand
- (re)-execute the command.
doUndo
public final void doUndo()
- Description copied from class:
AbstractCommand
- un-execute the command.
getValue
public abstract V getValue(M model)
setValue
public abstract void setValue(M model,
V value)
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractModelCommand<M>