public class AdapterImpl extends java.lang.Object implements Adapter.Internal
Adapter.Internal| Modifier and Type | Field and Description |
|---|---|
protected Notifier |
target
The last notifier set to this adapter.
|
| Constructor and Description |
|---|
AdapterImpl()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Notifier |
getTarget()
Returns the target from which the adapter receives notification.
|
boolean |
isAdapterForType(java.lang.Object type)
Returns
false |
void |
notifyChanged(Notification msg)
Does nothing; clients may override so that it does something.
|
void |
setTarget(Notifier newTarget)
Sets the target from which the adapter will receive notification.
|
void |
unsetTarget(Notifier oldTarget)
Unsets the target from which the adapter will receive notification.
|
protected Notifier target
public boolean isAdapterForType(java.lang.Object type)
falseisAdapterForType in interface Adaptertype - the type.falseAdapterFactory.isFactoryForType(java.lang.Object)public void notifyChanged(Notification msg)
notifyChanged in interface Adaptermsg - a description of the change.public Notifier getTarget()
AdaptergetTarget in interface AdapterAdapter.setTarget(org.eclipse.emf.common.notify.Notifier)public void setTarget(Notifier newTarget)
AdaptersetTarget in interface AdapternewTarget - the new notifier.Adapter.getTarget()public void unsetTarget(Notifier oldTarget)
Adapter.InternalunsetTarget in interface Adapter.InternaloldTarget - the old notifier.Adapter.getTarget(),
Adapter.setTarget(Notifier)