public abstract class AbstractReadOnlyCommand extends org.eclipse.emf.transaction.RunnableWithResult.Impl implements ICommand
RunnableWithResult.Impl.setResult(Object) method in the Runnable.run() method implementation.RunnableWithResult.Impl.getResult() method.| Constructor and Description |
|---|
AbstractReadOnlyCommand() |
| 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()
Not applicable for read only 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 ?
|
java.lang.String |
toString() |
getResult, getStatus, setStatuspublic boolean isReadOnly()
ICommandisReadOnly in interface ICommandtrue if read only, false if any model object is modified by the command.ICommand.isReadOnly()public void commandInterrupted()
ICommandcommandInterrupted in interface ICommandICommand.commandInterrupted()public void commandRolledBack()
ICommandcommandRolledBack in interface ICommandICommand.commandRolledBack()public java.util.Map getExecutionOptions()
ICommandTransactionalCommandStack.execute(org.eclipse.emf.common.command.Command, Map).getExecutionOptions in interface ICommandnull if default options are acceptable.ICommand.getExecutionOptions()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getName()
ICommandgetName in interface ICommandICommand.getName()public final java.util.Collection<?> getAffectedObjects()
getAffectedObjects in interface ICommand