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)
false
isAdapterForType
in interface Adapter
type
- the type.false
AdapterFactory.isFactoryForType(java.lang.Object)
public void notifyChanged(Notification msg)
notifyChanged
in interface Adapter
msg
- a description of the change.public Notifier getTarget()
Adapter
getTarget
in interface Adapter
Adapter.setTarget(org.eclipse.emf.common.notify.Notifier)
public void setTarget(Notifier newTarget)
Adapter
setTarget
in interface Adapter
newTarget
- the new notifier.Adapter.getTarget()
public void unsetTarget(Notifier oldTarget)
Adapter.Internal
unsetTarget
in interface Adapter.Internal
oldTarget
- the old notifier.Adapter.getTarget()
,
Adapter.setTarget(Notifier)