public abstract class AbstractCommand extends java.lang.Object implements ICommand
ICommand.| Constructor and Description |
|---|
AbstractCommand() |
| 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()
Default behavior returns an empty list.
|
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 |
isInterrupted() |
boolean |
isRolledBack() |
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitisReadOnlypublic void commandInterrupted()
ICommandcommandInterrupted in interface ICommandpublic void commandRolledBack()
ICommandcommandRolledBack in interface ICommandpublic boolean isInterrupted()
public boolean isRolledBack()
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 getName()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.util.Collection<?> getAffectedObjects()
getAffectedObjects in interface ICommand