public interface ICommand
extends java.lang.Runnable
| Modifier and Type | Method and Description |
|---|---|
void |
commandInterrupted()
Command has been interrupted.
Implementation is free to take any action that seems necessary. |
void |
commandRolledBack()
Command has been rolled back.
Implementation is free to take any action that seems necessary. |
java.util.Collection<?> |
getAffectedObjects()
Returns the collection of things which this command wishes to present as the objects affected by the command.
|
java.util.Map |
getExecutionOptions()
Get the execution options map.
TransactionalCommandStack.execute(org.eclipse.emf.common.command.Command, Map). |
java.lang.String |
getName()
Get readable command name.
|
boolean |
isReadOnly()
Is the command only reading model objects or is it modifying any of them ?
|
boolean isReadOnly()
true if read only, false if any model object is modified by the command.void commandInterrupted()
void commandRolledBack()
java.util.Map getExecutionOptions()
TransactionalCommandStack.execute(org.eclipse.emf.common.command.Command, Map).null if default options are acceptable.java.lang.String getName()
java.util.Collection<?> getAffectedObjects()
execute,
redo, or undo is undefined. The result may be different after an undo than it is after an
execute or redo, but the result should be the same (equivalent) after either an execute or redo.