public interface CreateNewModelElementStrategy
DefaultReferenceService
customization strategy to add one or more new elements to a reference of an owner.DefaultReferenceService
Modifier and Type | Interface and Description |
---|---|
static interface |
CreateNewModelElementStrategy.Provider
Specific Bazaar vendor interface for add new model elements strategies.
|
Modifier and Type | Field and Description |
---|---|
static CreateNewModelElementStrategy |
DEFAULT
Default strategy that creates a new model element based on the sub classes of the reference type.
|
Modifier and Type | Method and Description |
---|---|
Optional<org.eclipse.emf.ecore.EObject> |
createNewModelElement(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference)
Create a new model element in the reference of the given owner.
|
static final CreateNewModelElementStrategy DEFAULT
Optional<org.eclipse.emf.ecore.EObject> createNewModelElement(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
owner
- The EObject
that contains the referencereference
- The reference for which a new model element should be creatednull
if none was createdCopyright © 2019. All rights reserved.