Class SetReferenceValueCommand

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

    public class SetReferenceValueCommand
    extends java.lang.Object
    implements org.eclipse.emf.common.command.Command
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.eclipse.emf.ecore.EObject newValue  
      protected org.eclipse.emf.ecore.EObject object  
      protected org.eclipse.emf.ecore.EObject oldValue  
      protected org.eclipse.emf.ecore.EReference reference  
    • Constructor Summary

      Constructors 
      Constructor Description
      SetReferenceValueCommand​(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EObject newValue, org.eclipse.emf.ecore.EReference reference)  
    • Field Detail

      • newValue

        protected org.eclipse.emf.ecore.EObject newValue
      • oldValue

        protected org.eclipse.emf.ecore.EObject oldValue
      • object

        protected org.eclipse.emf.ecore.EObject object
      • reference

        protected org.eclipse.emf.ecore.EReference reference
    • Constructor Detail

      • SetReferenceValueCommand

        public SetReferenceValueCommand​(org.eclipse.emf.ecore.EObject object,
                                        org.eclipse.emf.ecore.EObject newValue,
                                        org.eclipse.emf.ecore.EReference reference)
    • Method Detail

      • canExecute

        public boolean canExecute()
        Specified by:
        canExecute in interface org.eclipse.emf.common.command.Command
      • canUndo

        public boolean canUndo()
        Specified by:
        canUndo in interface org.eclipse.emf.common.command.Command
      • chain

        public org.eclipse.emf.common.command.Command chain​(org.eclipse.emf.common.command.Command arg0)
        Specified by:
        chain in interface org.eclipse.emf.common.command.Command
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.emf.common.command.Command
      • execute

        public void execute()
        Specified by:
        execute in interface org.eclipse.emf.common.command.Command
      • getAffectedObjects

        public java.util.Collection<?> getAffectedObjects()
        Specified by:
        getAffectedObjects in interface org.eclipse.emf.common.command.Command
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface org.eclipse.emf.common.command.Command
      • getLabel

        public java.lang.String getLabel()
        Specified by:
        getLabel in interface org.eclipse.emf.common.command.Command
      • getResult

        public java.util.Collection<?> getResult()
        Specified by:
        getResult in interface org.eclipse.emf.common.command.Command
      • redo

        public void redo()
        Specified by:
        redo in interface org.eclipse.emf.common.command.Command
      • undo

        public void undo()
        Specified by:
        undo in interface org.eclipse.emf.common.command.Command