org.eclipse.gmt.umlx.editor.command
Class CompoundModelStateCommand<T extends IModelState>
java.lang.Object
org.eclipse.gef.commands.Command
org.eclipse.gmt.umlx.editor.command.AbstractCommand
org.eclipse.gmt.umlx.editor.command.CompoundCommand
org.eclipse.gmt.umlx.editor.command.CompoundModelStateCommand<T>
- All Implemented Interfaces:
- IAbstractCommand, IModelStateCommand<T>
public class CompoundModelStateCommand<T extends IModelState>
- extends CompoundCommand
- implements IModelStateCommand<T>
An aggregation of multiple Commands
, the second of which is
a ModelStateCommand.
Methods inherited from class org.eclipse.gmt.umlx.editor.command.CompoundCommand |
add, addSelectedObjects, canExecute, canUndo, compound, diagnoseCannotExecute, dispose, doPrepare, doRedo, doUndo, getCommands, getLabel, toString |
Methods inherited from class org.eclipse.gef.commands.Command |
chain, getDebugLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.gmt.umlx.editor.command.IAbstractCommand |
addSelectedObjects, canExecute, canUndo, couldNotUnlock, diagnoseCannotExecute, dispose, execute, getCommand, getLabel, prepare, prepare, redo, requestModification, undo |
CompoundModelStateCommand
public CompoundModelStateCommand(CreateCommand primaryCommand,
ModelStateCommand<T> secondaryCommand)
getModelStateCommand
public ModelStateCommand<T> getModelStateCommand()
getModelState
public T getModelState()
- Specified by:
getModelState
in interface IModelStateCommand<T extends IModelState>
setHasSelection
public void setHasSelection(boolean hasSelection)
- Specified by:
setHasSelection
in interface IModelStateCommand<T extends IModelState>