Class ECPCommand
- java.lang.Object
-
- org.eclipse.emf.common.command.AbstractCommand
-
- org.eclipse.emf.edit.command.ChangeCommand
-
- org.eclipse.emf.ecp.editor.internal.e3.ECPCommand
-
- All Implemented Interfaces:
org.eclipse.emf.common.command.Command
public abstract class ECPCommand extends org.eclipse.emf.edit.command.ChangeCommand
Command capable of recording changes on a model element.- Author:
- emueller
-
-
Constructor Summary
Constructors Constructor Description ECPCommand(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.edit.domain.EditingDomain domain)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
doExecute()
protected abstract void
doRun()
The actual action that is being executed.void
run(boolean ignoreExceptions)
Executes the command.-
Methods inherited from class org.eclipse.emf.edit.command.ChangeCommand
createChangeRecorder, dispose, disposeChangeRecorder, execute, getChangeDescription, getChangeRecorder, prepare, redo, setChangeDescription, undo
-
-
-
-
Method Detail
-
doExecute
protected final void doExecute()
- Specified by:
doExecute
in classorg.eclipse.emf.edit.command.ChangeCommand
- See Also:
org.eclipse.emf.edit.ChangeCommand#doExecute()
-
doRun
protected abstract void doRun()
The actual action that is being executed.
-
run
public void run(boolean ignoreExceptions)
Executes the command.- Parameters:
ignoreExceptions
- true if any thrown exception in the execution of the command should be ignored.
-
-