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)
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 target)
AdaptersetTarget in interface Adaptertarget - the new notifier.Adapter.getTarget()public void unsetTarget(Notifier target)
Adapter.InternalunsetTarget in interface Adapter.Internaltarget - the old notifier.Adapter.getTarget(),
Adapter.setTarget(Notifier)public void dispose()
Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature