Class PutCommand

  • All Implemented Interfaces:
    org.eclipse.emf.common.command.Command, org.eclipse.emf.edit.command.OverrideableCommand

    public class PutCommand
    extends org.eclipse.emf.edit.command.AbstractOverrideableCommand
    Map put command
    • 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.AbstractOverrideableCommand

        domain, overrideCommand
      • Fields inherited from class org.eclipse.emf.common.command.AbstractCommand

        description, isExecutable, isPrepared, label
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PutCommand​(org.eclipse.emf.edit.domain.EditingDomain domain, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Iterable<Map.Entry> entries)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PutCommand create​(org.eclipse.emf.edit.domain.EditingDomain domain, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Iterable<Map.Entry> entries)  
      void doExecute()  
      Collection<?> doGetAffectedObjects()
      Returns a collection from the only element - owner.
      void doRedo()  
      void doUndo()  
      protected boolean prepare()  
      • Methods inherited from class org.eclipse.emf.edit.command.AbstractOverrideableCommand

        canExecute, canUndo, dispose, doCanExecute, doCanUndo, doDispose, doGetChildrenToCopy, doGetDescription, doGetLabel, doGetResult, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, toString, undo, updateEMap
      • Methods inherited from class org.eclipse.emf.common.command.AbstractCommand

        chain, setDescription, setLabel
      • Methods inherited from interface org.eclipse.emf.common.command.Command

        chain
    • Constructor Detail

      • PutCommand

        protected PutCommand​(org.eclipse.emf.edit.domain.EditingDomain domain,
                             org.eclipse.emf.ecore.EObject owner,
                             org.eclipse.emf.ecore.EStructuralFeature feature,
                             Iterable<Map.Entry> entries)
    • Method Detail

      • doExecute

        public void doExecute()
        Specified by:
        doExecute in interface org.eclipse.emf.edit.command.OverrideableCommand
        Specified by:
        doExecute in class org.eclipse.emf.edit.command.AbstractOverrideableCommand
      • prepare

        protected boolean prepare()
        Overrides:
        prepare in class org.eclipse.emf.common.command.AbstractCommand
      • doUndo

        public void doUndo()
        Specified by:
        doUndo in interface org.eclipse.emf.edit.command.OverrideableCommand
        Specified by:
        doUndo in class org.eclipse.emf.edit.command.AbstractOverrideableCommand
      • doRedo

        public void doRedo()
        Specified by:
        doRedo in interface org.eclipse.emf.edit.command.OverrideableCommand
        Specified by:
        doRedo in class org.eclipse.emf.edit.command.AbstractOverrideableCommand
      • doGetAffectedObjects

        public Collection<?> doGetAffectedObjects()
        Returns a collection from the only element - owner.
        Specified by:
        doGetAffectedObjects in interface org.eclipse.emf.edit.command.OverrideableCommand
        Overrides:
        doGetAffectedObjects in class org.eclipse.emf.edit.command.AbstractOverrideableCommand
        Returns:
        the collection of things which this command wishes to present as the objects affected by the command.
        See Also:
        getAffectedObjects()
      • create

        public static PutCommand create​(org.eclipse.emf.edit.domain.EditingDomain domain,
                                        org.eclipse.emf.ecore.EObject owner,
                                        org.eclipse.emf.ecore.EStructuralFeature feature,
                                        Iterable<Map.Entry> entries)