|
||||||||||
| 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.gmf.graphdef.editor.sheet.AttachAdapter
public final class AttachAdapter
Helper adapter that tracks specific feature of the notifier(s) it is
attached to (with regular objOfInterest.eAdapters().add(attachAdapter) call)
and attaches/detaches provided adapter when feature value changes (set/unset, add/remove)
| 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 | |
|---|---|
AttachAdapter(org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.common.notify.Adapter... attachAdapters)
Plain attaching/detaching adapter, with no additional change tracker. |
|
AttachAdapter(org.eclipse.emf.ecore.EReference reference,
ChangeTracker tracker,
org.eclipse.emf.common.notify.Adapter... attachAdapters)
|
|
| Method Summary | |
|---|---|
void |
notifyChanged(org.eclipse.emf.common.notify.Notification msg)
|
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
|
void |
unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
|
| 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 AttachAdapter(org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.common.notify.Adapter... attachAdapters)
AttachAdapter(EReference, ChangeTracker, Adapter...)
public AttachAdapter(org.eclipse.emf.ecore.EReference reference,
ChangeTracker tracker,
org.eclipse.emf.common.notify.Adapter... attachAdapters)
reference - - feature to track, non-null, adapter's target expected to conform feature's container typetracker - - notified on feature change in addition to attached/detached adapters, may be null.
If specified, gets notification *after* adapters were attached/detached.attachAdapters - - copy by reference, do not change initial array| Method Detail |
|---|
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
setTarget in interface org.eclipse.emf.common.notify.AdaptersetTarget in class org.eclipse.emf.common.notify.impl.AdapterImplpublic void unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
unsetTarget in interface org.eclipse.emf.common.notify.Adapter.InternalunsetTarget in class org.eclipse.emf.common.notify.impl.AdapterImplpublic void notifyChanged(org.eclipse.emf.common.notify.Notification msg)
notifyChanged in interface org.eclipse.emf.common.notify.AdapternotifyChanged in class org.eclipse.emf.common.notify.impl.AdapterImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||