Class UMLCopier.IndexTracker

  • Enclosing class:
    UMLCopier

    private static class UMLCopier.IndexTracker
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Map<org.eclipse.emf.ecore.EObject,​java.lang.Integer> targetObjIndexMap  
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexTracker​(org.eclipse.emf.ecore.util.InternalEList<org.eclipse.emf.ecore.EObject> target)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void doRefresh​(org.eclipse.emf.ecore.util.InternalEList<org.eclipse.emf.ecore.EObject> targetList, int start, int end)  
      int getIndex​(org.eclipse.emf.ecore.EObject obj)  
      private void putIndex​(org.eclipse.emf.ecore.EObject obj, java.lang.Integer index)  
      void refreshOnAdd​(org.eclipse.emf.ecore.util.InternalEList<org.eclipse.emf.ecore.EObject> targetList, int index, org.eclipse.emf.ecore.EObject copyReferencedEObject)  
      void refreshOnMove​(org.eclipse.emf.ecore.util.InternalEList<org.eclipse.emf.ecore.EObject> targetList, int index, int oldIndex, org.eclipse.emf.ecore.EObject copyReferencedEObject)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • targetObjIndexMap

        final java.util.Map<org.eclipse.emf.ecore.EObject,​java.lang.Integer> targetObjIndexMap
    • Constructor Detail

      • IndexTracker

        public IndexTracker​(org.eclipse.emf.ecore.util.InternalEList<org.eclipse.emf.ecore.EObject> target)
    • Method Detail

      • getIndex

        public int getIndex​(org.eclipse.emf.ecore.EObject obj)
      • putIndex

        private void putIndex​(org.eclipse.emf.ecore.EObject obj,
                              java.lang.Integer index)
      • refreshOnAdd

        public void refreshOnAdd​(org.eclipse.emf.ecore.util.InternalEList<org.eclipse.emf.ecore.EObject> targetList,
                                 int index,
                                 org.eclipse.emf.ecore.EObject copyReferencedEObject)
      • refreshOnMove

        public void refreshOnMove​(org.eclipse.emf.ecore.util.InternalEList<org.eclipse.emf.ecore.EObject> targetList,
                                  int index,
                                  int oldIndex,
                                  org.eclipse.emf.ecore.EObject copyReferencedEObject)
      • doRefresh

        private void doRefresh​(org.eclipse.emf.ecore.util.InternalEList<org.eclipse.emf.ecore.EObject> targetList,
                               int start,
                               int end)