Class ECPControlHelper


  • public abstract class ECPControlHelper
    extends java.lang.Object
    Author:
    Jonas
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addModelElementInReference​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EObject newMEInstance, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.edit.domain.EditingDomain editingDomain)  
      static void addModelElementsInReference​(org.eclipse.emf.ecore.EObject eObject, java.util.Set<? extends org.eclipse.emf.ecore.EObject> eObjects, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.edit.domain.EditingDomain editingDomain)  
      static void removeExistingReferences​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference, java.util.Set<? extends org.eclipse.emf.ecore.EObject> elements)
      Removes elements, which are already referenced.
      • Methods inherited from class java.lang.Object

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

      • ECPControlHelper

        public ECPControlHelper()
    • Method Detail

      • addModelElementInReference

        public static void addModelElementInReference​(org.eclipse.emf.ecore.EObject eObject,
                                                      org.eclipse.emf.ecore.EObject newMEInstance,
                                                      org.eclipse.emf.ecore.EReference eReference,
                                                      org.eclipse.emf.edit.domain.EditingDomain editingDomain)
        Parameters:
        eObject - the object to add a reference to
        newMEInstance - the object which is added as a reference
        eReference - the reference to be modified
        editingDomain - the editing domain to execute commands on
      • addModelElementsInReference

        public static void addModelElementsInReference​(org.eclipse.emf.ecore.EObject eObject,
                                                       java.util.Set<? extends org.eclipse.emf.ecore.EObject> eObjects,
                                                       org.eclipse.emf.ecore.EReference eReference,
                                                       org.eclipse.emf.edit.domain.EditingDomain editingDomain)
        Parameters:
        eObject - the objects to add a reference to
        eObjects - the objects which is added as a reference
        eReference - the reference to be modified
        editingDomain - the editing domain to execute commands on
      • removeExistingReferences

        public static void removeExistingReferences​(org.eclipse.emf.ecore.EObject eObject,
                                                    org.eclipse.emf.ecore.EReference eReference,
                                                    java.util.Set<? extends org.eclipse.emf.ecore.EObject> elements)
        Removes elements, which are already referenced.
        Parameters:
        eObject - The object holding the reference
        eReference - the reference
        elements - the elements to remove existing elements from