Interface EObjectSelectionStrategy
-
public interface EObjectSelectionStrategy
ADefaultReferenceService
customization strategy for accumulating existingEObject
s eligible for addition to a reference in an owner.- Since:
- 1.16
- See Also:
DefaultReferenceService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EObjectSelectionStrategy.Provider
Specific Bazaar vendor interface forEObject
selection strategies.
-
Field Summary
Fields Modifier and Type Field Description static EObjectSelectionStrategy
NULL
An idempotent strategy (does not modify the selection).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<org.eclipse.emf.ecore.EObject>
collectExistingObjects(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, java.util.Collection<org.eclipse.emf.ecore.EObject> existingObjects)
Update a collection ofEObject
s that are eligible for addition to a reference feature.
-
-
-
Field Detail
-
NULL
static final EObjectSelectionStrategy NULL
An idempotent strategy (does not modify the selection).
-
-
Method Detail
-
collectExistingObjects
java.util.Collection<org.eclipse.emf.ecore.EObject> collectExistingObjects(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, java.util.Collection<org.eclipse.emf.ecore.EObject> existingObjects)
Update a collection ofEObject
s that are eligible for addition to a reference feature.- Parameters:
owner
- the proposed owner of the references to existing objectsreference
- theowner
's reference in which to add a objectsexistingObjects
- a mutable collection of eligible objects. Implementors may add and remove elements in this collection as needed- Returns:
- a mutable filtered collection of objects that can be passed into the
next strategy. A suggested pattern is to modify the
existingObjects
in place and return that collection
-
-