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)
CreateElementCallback
initElement
in interface CreateElementCallback
parent
- the future parentreference
- the parent referencenewObject
- the newly created EObject, which should be initialized.public boolean beforeCreateElement(Object newElement)
CreateElementCallback
beforeCreateElement
in interface CreateElementCallback
newElement
- The new elementtrue
if the element should be kept in the containment tree, false
if it should
be removed againpublic void afterCreateElement(Object newElement)
CreateElementCallback
afterCreateElement
in interface CreateElementCallback
newElement
- the new Element.Copyright © 2019. All rights reserved.