public class InitializeChildCallback extends Object implements CreateElementCallback
| Constructor and Description |
|---|
InitializeChildCallback() |
| 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.
|
public void initElement(org.eclipse.emf.ecore.EObject parent,
org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.ecore.EObject newObject)
CreateElementCallbackinitElement in interface CreateElementCallbackparent - the future parentreference - the parent referencenewObject - the newly created EObject, which should be initialized.public boolean beforeCreateElement(Object newElement)
CreateElementCallbackbeforeCreateElement in interface CreateElementCallbacknewElement - The new elementtrue if the element should be kept in the containment tree, false if it should
be removed againpublic void afterCreateElement(Object newElement)
CreateElementCallbackafterCreateElement in interface CreateElementCallbacknewElement - the new Element.Copyright © 2019. All rights reserved.