Interface EClassSelectionStrategy
-
public interface EClassSelectionStrategy
A customization strategy for accumulatingEClass
es for instantiation to create a new object in a reference. Used by theDefaultCreateNewModelElementStrategyProvider
.- Since:
- 1.16
- See Also:
DefaultReferenceService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EClassSelectionStrategy.Provider
Specific Bazaar vendor interface forEClass
selection strategies.
-
Field Summary
Fields Modifier and Type Field Description static EClassSelectionStrategy
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.EClass>
collectEClasses(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, java.util.Collection<org.eclipse.emf.ecore.EClass> eclasses)
Update a collection ofEClass
es that are eligible for creation of a new object in the reference.
-
-
-
Field Detail
-
NULL
static final EClassSelectionStrategy NULL
An idempotent strategy (does not modify the selection).
-
-
Method Detail
-
collectEClasses
java.util.Collection<org.eclipse.emf.ecore.EClass> collectEClasses(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, java.util.Collection<org.eclipse.emf.ecore.EClass> eclasses)
Update a collection ofEClass
es that are eligible for creation of a new object in the reference.- Parameters:
owner
- the proposed owner of a new referencereference
- theowner
's reference in which to add a new objecteclasses
- a mutable collection of classes. Implementors may add and remove elements in this collection as needed- Returns:
- a mutable filtered collection of classes that can be passed into the
next strategy. A suggested pattern is to modify the
eclasses
in place and return that collection
-
-