Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand

        org.eclipse.emf.common.command.AbstractCommand.NonDirtying
    • Field Summary

      • Fields inherited from class org.eclipse.emf.edit.command.ChangeCommand

        changeDescription, changeRecorder, notifier, notifiers
      • Fields inherited from class org.eclipse.emf.common.command.AbstractCommand

        description, isExecutable, isPrepared, label
    • 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
      • Methods inherited from class org.eclipse.emf.common.command.AbstractCommand

        canExecute, canUndo, chain, getAffectedObjects, getDescription, getLabel, getResult, setDescription, setLabel, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ECPCommand

        public ECPCommand​(org.eclipse.emf.ecore.EObject eObject,
                          org.eclipse.emf.edit.domain.EditingDomain domain)
        Constructor.
        Parameters:
        eObject - the model element whose changes one is interested in
        domain - the EditingDomain to use
    • Method Detail

      • doExecute

        protected final void doExecute()
        Specified by:
        doExecute in class org.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.