|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.ecore.util.EContentAdapter
org.eclipse.ocl.examples.eventmanager.framework.EventAdapter
public class EventAdapter
This special 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);
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
|---|
org.eclipse.emf.common.notify.Adapter.Internal |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
|---|
target |
| Constructor Summary | |
|---|---|
EventAdapter(EventManager eventManager)
Constructs a new Adapter with the given EventManager as instance to notify
NOTE: the EventManager is held as WeakReference |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.eclipse.emf.ecore.util.EContentAdapter |
|---|
basicSetTarget, basicUnsetTarget, handleContainment, resolve, selfAdapt, setTarget, setTarget, setTarget, setTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget |
| Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
|---|
getTarget, isAdapterForType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventAdapter(EventManager eventManager)
EventManager as instance to notify
NOTE: the EventManager is held as WeakReference
| Method Detail |
|---|
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.EContentAdapterprotected void removeAdapter(org.eclipse.emf.common.notify.Notifier notifier)
removeAdapter in class org.eclipse.emf.ecore.util.EContentAdapterpublic void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged in interface org.eclipse.emf.common.notify.AdapternotifyChanged in class org.eclipse.emf.ecore.util.EContentAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||