public class EventAdapter
extends org.eclipse.emf.ecore.util.EContentAdapter
EContentAdapter
is used to notify a given EventManager
if any notification is raised
ATTENTION: for the right registration at a target one have to use target.eAdapters().add(myAdapter);
Constructor and Description |
---|
EventAdapter(EventManager eventManager)
Constructs a new Adapter with the given
EventManager as instance to notify
NOTE: the EventManager is held as WeakReference |
Modifier and Type | Method and Description |
---|---|
protected void |
addAdapter(org.eclipse.emf.common.notify.Notifier notifier)
Avoid duplicate adapter entry which would otherwise happen because objects may be "physically" contained in
a
Resource 's contents but also be "logically" contained in another
EObject by means of a containment reference. |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification) |
protected void |
removeAdapter(org.eclipse.emf.common.notify.Notifier notifier) |
basicSetTarget, basicUnsetTarget, handleContainment, removeAdapter, resolve, selfAdapt, setTarget, setTarget, setTarget, setTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget
public EventAdapter(EventManager eventManager)
EventManager
as instance to notify
NOTE: the EventManager is held as WeakReference
protected void addAdapter(org.eclipse.emf.common.notify.Notifier notifier)
Resource
's contents
but also be "logically" contained in another
EObject
by means of a containment reference.addAdapter
in class org.eclipse.emf.ecore.util.EContentAdapter
protected void removeAdapter(org.eclipse.emf.common.notify.Notifier notifier)
removeAdapter
in class org.eclipse.emf.ecore.util.EContentAdapter
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
notifyChanged
in class org.eclipse.emf.ecore.util.EContentAdapter