public interface CreateElementCallback
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreateElement(Object newElement)
Gets called after a new element was added to the domain model.
|
boolean |
beforeCreateElement(Object newElement)
Gets called after the new Element has been added to the containment tree.
|
void |
initElement(org.eclipse.emf.ecore.EObject parent,
org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.ecore.EObject newObject)
Gets called before the new object has been added to containment tree.
|
void initElement(org.eclipse.emf.ecore.EObject parent,
org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.ecore.EObject newObject)
parent - the future parentreference - the parent referencenewObject - the newly created EObject, which should be initialized.boolean beforeCreateElement(Object newElement)
newElement - The new elementtrue if the element should be kept in the containment tree, false if it should
be removed againvoid afterCreateElement(Object newElement)
newElement - the new Element.Copyright © 2018. All rights reserved.