public abstract class ChangeDeltaCommand
extends java.lang.Object
implements org.eclipse.emf.common.command.Command
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
affectedObjects |
protected ChangeDelta |
delta |
protected boolean |
disposed |
protected java.lang.Object |
increment |
| Constructor and Description |
|---|
ChangeDeltaCommand(ChangeDelta delta,
java.lang.Object affectedObject) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExecute() |
boolean |
canUndo() |
org.eclipse.emf.common.command.Command |
chain(org.eclipse.emf.common.command.Command command) |
void |
dispose() |
java.util.Collection |
getAffectedObjects() |
java.lang.String |
getDescription() |
java.lang.String |
getLabel() |
java.util.Collection |
getResult() |
void |
redo() |
protected ChangeDelta delta
protected java.lang.Object increment
protected boolean disposed
protected java.util.List affectedObjects
public ChangeDeltaCommand(ChangeDelta delta, java.lang.Object affectedObject)
delta - -
change delta to be incrementedaffectedObject - -
new value (delta above delta) to be set to the delta incrementpublic boolean canExecute()
canExecute in interface org.eclipse.emf.common.command.Commandpublic boolean canUndo()
canUndo in interface org.eclipse.emf.common.command.Commandpublic void redo()
redo in interface org.eclipse.emf.common.command.Commandpublic org.eclipse.emf.common.command.Command chain(org.eclipse.emf.common.command.Command command)
chain in interface org.eclipse.emf.common.command.Commandpublic void dispose()
dispose in interface org.eclipse.emf.common.command.Commandpublic java.util.Collection getAffectedObjects()
getAffectedObjects in interface org.eclipse.emf.common.command.Commandpublic java.lang.String getDescription()
getDescription in interface org.eclipse.emf.common.command.Commandpublic java.lang.String getLabel()
getLabel in interface org.eclipse.emf.common.command.Commandpublic java.util.Collection getResult()
getResult in interface org.eclipse.emf.common.command.Command