public abstract class ECPControlHelper extends Object
Constructor and Description |
---|
ECPControlHelper() |
Modifier and Type | Method and 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,
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,
Set<? extends org.eclipse.emf.ecore.EObject> elements)
Removes elements, which are already referenced.
|
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)
eObject
- the object to add a reference tonewMEInstance
- the object which is added as a referenceeReference
- the reference to be modifiededitingDomain
- the editing domain to execute commands onpublic static void addModelElementsInReference(org.eclipse.emf.ecore.EObject eObject, Set<? extends org.eclipse.emf.ecore.EObject> eObjects, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.edit.domain.EditingDomain editingDomain)
eObject
- the objects to add a reference toeObjects
- the objects which is added as a referenceeReference
- the reference to be modifiededitingDomain
- the editing domain to execute commands onpublic static void removeExistingReferences(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference, Set<? extends org.eclipse.emf.ecore.EObject> elements)
eObject
- The object holding the referenceeReference
- the referenceelements
- the elements to remove existing elements fromCopyright © 2019. All rights reserved.