public class SingletonAdapterImpl extends java.lang.Object implements Adapter.Internal
Adapter.Internal
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Notifier> |
targets
The list of all the targets to which this adapter is set.
|
Constructor and Description |
---|
SingletonAdapterImpl()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Removes the adapter from all its targets.
|
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 target)
Sets the target from which the adapter will receive notification.
|
void |
unsetTarget(Notifier target)
Unsets the target from which the adapter will receive notification.
|
protected java.util.List<Notifier> targets
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 target)
Adapter
setTarget
in interface Adapter
target
- the new notifier.Adapter.getTarget()
public void unsetTarget(Notifier target)
Adapter.Internal
unsetTarget
in interface Adapter.Internal
target
- the old notifier.Adapter.getTarget()
,
Adapter.setTarget(Notifier)
public void dispose()