Class MoveEObjectEvent


  • public class MoveEObjectEvent
    extends AbstractEvent
    The event for moving EObject object.
    • Constructor Detail

      • MoveEObjectEvent

        public MoveEObjectEvent​(Mapping<?,​?> mapping,
                                org.eclipse.emf.ecore.EStructuralFeature updatedFeature,
                                org.eclipse.emf.ecore.EObject owner,
                                Object model,
                                int oldPosition,
                                int newPosition)
        Creates a new event. Events creates on mapping.
        Parameters:
        mapping - - the mapping which creates this event.
        updatedFeature - - the feature of owner in which moving object.
        owner - - the owner in which moving object.
        model - - the moving object.
        newPosition - - the new position of moving object.
      • MoveEObjectEvent

        public MoveEObjectEvent​(org.eclipse.emf.ecore.EStructuralFeature updatedFeature,
                                org.eclipse.emf.ecore.EObject owner,
                                Object value,
                                int oldPosition,
                                int newPosition)
        Creates a new event.
        Parameters:
        updatedFeature - - the feature of owner in which moving object.
        owner - - the owner in which moving object.
        model - - the moving object.
        newPosition - - the new position of moving object.
    • Method Detail

      • getFeature

        public org.eclipse.emf.ecore.EStructuralFeature getFeature()
        Gets the feature of owner in which moving object.
        Returns:
        the feature of owner in which moving object.
      • getOwner

        public org.eclipse.emf.ecore.EObject getOwner()
        Gets the owner in which moving object.
        Returns:
        the owner in which moving object.
      • getModel

        public Object getModel()
        Gets the moving object.
        Returns:
        the moving object.
      • getOldPosition

        public int getOldPosition()
      • getNewPosition

        public int getNewPosition()
        Gets the new position of moving object.
        Returns:
        the new position of moving object.