|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.emf.ecore.util.ECrossReferenceAdapter
An adapter that maintains itself as an adapter for all contained objects.
It can be installed for an EObject, a Resource, or a ResourceSet.
| Nested Class Summary | |
protected class |
ECrossReferenceAdapter.InverseCrossReferencer
|
| Nested classes inherited from class org.eclipse.emf.common.notify.Adapter |
Adapter.Internal |
| Field Summary | |
protected ECrossReferenceAdapter.InverseCrossReferencer |
inverseCrossReferencer
|
protected Set |
unloadedResources
|
| Constructor Summary | |
ECrossReferenceAdapter()
|
|
| Method Summary | |
protected void |
addAdapter(Notifier notifier)
|
protected ECrossReferenceAdapter.InverseCrossReferencer |
createInverseCrossReferencer()
|
void |
dump()
|
static ECrossReferenceAdapter |
getCrossReferenceAdapter(Notifier notifier)
Returns the first ECrossReferenceAdapter in the notifier's adapter list,
or null, if there isn't one. |
Collection |
getInverseReferences(EObject eObject)
|
Collection |
getNonNavigableInverseReferences(EObject eObject)
|
Notifier |
getTarget()
Returns the target from which the adapter receives notification. |
protected void |
handleContainment(Notification notification)
Handles a containment change by adding and removing the adapter as appropriate. |
protected void |
handleCrossReference(EReference reference,
Notification notification)
Handles a cross reference change by adding and removing the adapter as appropriate. |
boolean |
isAdapterForType(Object type)
Returns whether the adapter is of the given type. |
protected boolean |
isIncluded(EReference eReference)
|
void |
notifyChanged(Notification notification)
Handles a notification by calling selfAdapter. |
protected void |
removeAdapter(Notifier notifier)
|
protected boolean |
resolve()
|
protected void |
selfAdapt(Notification notification)
Handles a notification by calling handleContainment
for any containment-based notification. |
void |
setTarget(Notifier target)
Handles installation of the adapter by adding the adapter to each of the directly contained objects. |
void |
unsetTarget(Notifier target)
Handles installation of the adapter by adding the adapter to each of the directly contained objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Set unloadedResources
protected ECrossReferenceAdapter.InverseCrossReferencer inverseCrossReferencer
| Constructor Detail |
public ECrossReferenceAdapter()
| Method Detail |
public static ECrossReferenceAdapter getCrossReferenceAdapter(Notifier notifier)
ECrossReferenceAdapter in the notifier's adapter list,
or null, if there isn't one.
notifier - the object to search.
public Collection getNonNavigableInverseReferences(EObject eObject)
public Collection getInverseReferences(EObject eObject)
protected boolean isIncluded(EReference eReference)
protected ECrossReferenceAdapter.InverseCrossReferencer createInverseCrossReferencer()
public void notifyChanged(Notification notification)
selfAdapter.
notifyChanged in interface Adapternotification - a description of the change.protected void selfAdapt(Notification notification)
handleContainment
for any containment-based notification.
protected void handleContainment(Notification notification)
protected void handleCrossReference(EReference reference,
Notification notification)
public void setTarget(Notifier target)
setTarget in interface Adaptertarget - the new notifier.Adapter.getTarget()public void unsetTarget(Notifier target)
unsetTarget in interface Adapter.Internaltarget - the old notifier.Adapter.getTarget(),
Adapter.setTarget(org.eclipse.emf.common.notify.Notifier)protected void addAdapter(Notifier notifier)
protected void removeAdapter(Notifier notifier)
public void dump()
public Notifier getTarget()
Adapter
getTarget in interface AdapterAdapter.setTarget(org.eclipse.emf.common.notify.Notifier)public boolean isAdapterForType(Object type)
Adapter
isAdapterForType in interface Adaptertype - the type.
AdapterFactory.isFactoryForType(java.lang.Object)protected boolean resolve()
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||