public interface EObjectSelectionStrategy
DefaultReferenceService
customization strategy for accumulating existing EObject
s eligible for addition to a
reference in an owner.DefaultReferenceService
Modifier and Type | Interface and Description |
---|---|
static interface |
EObjectSelectionStrategy.Provider
Specific Bazaar vendor interface for
EObject selection strategies. |
Modifier and Type | Field and Description |
---|---|
static EObjectSelectionStrategy |
NULL
An idempotent strategy (does not modify the selection).
|
Modifier and Type | Method and Description |
---|---|
Collection<org.eclipse.emf.ecore.EObject> |
collectExistingObjects(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference,
Collection<org.eclipse.emf.ecore.EObject> existingObjects)
Update a collection of
EObject s that are eligible for addition to
a reference feature. |
static final EObjectSelectionStrategy NULL
Collection<org.eclipse.emf.ecore.EObject> collectExistingObjects(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, Collection<org.eclipse.emf.ecore.EObject> existingObjects)
EObject
s that are eligible for addition to
a reference feature.owner
- the proposed owner of the references to existing objectsreference
- the owner
's reference in which to add a objectsexistingObjects
- a mutable collection of eligible objects. Implementors may add and
remove elements in this collection as neededexistingObjects
in place
and return that collectionCopyright © 2019. All rights reserved.