org.eclipse.gmt.umlx.editor.command
Class CompoundModelStateCommand<T extends IModelState>

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.eclipse.gmt.umlx.editor.command.AbstractCommand
          extended by org.eclipse.gmt.umlx.editor.command.CompoundCommand
              extended by 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.


Constructor Summary
CompoundModelStateCommand(CreateCommand primaryCommand, ModelStateCommand<T> secondaryCommand)
           
 
Method Summary
 T getModelState()
           
 ModelStateCommand<T> getModelStateCommand()
           
 void setHasSelection(boolean hasSelection)
           
 
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.gmt.umlx.editor.command.AbstractCommand
couldNotUnlock, execute, getCommand, prepare, prepare, redo, requestModification, undo
 
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
 

Constructor Detail

CompoundModelStateCommand

public CompoundModelStateCommand(CreateCommand primaryCommand,
                                 ModelStateCommand<T> secondaryCommand)
Method Detail

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>