|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.SingletonAdapterImpl
public class SingletonAdapterImpl
An alternate, extensible adapter implementation that is well suited to adapt for a number of objects (typically all objects of a given type).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
|---|
Adapter.Internal |
| Field Summary | |
|---|---|
protected java.util.List<Notifier> |
targets
The list of all the targets to which this adapter is set. |
| Constructor Summary | |
|---|---|
SingletonAdapterImpl()
Creates an instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<Notifier> targets
| Constructor Detail |
|---|
public SingletonAdapterImpl()
| Method Detail |
|---|
public boolean isAdapterForType(java.lang.Object type)
false
isAdapterForType 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()
Adapter
getTarget in interface AdapterAdapter.setTarget(org.eclipse.emf.common.notify.Notifier)public void setTarget(Notifier target)
Adapter
setTarget in interface Adaptertarget - the new notifier.Adapter.getTarget()public void unsetTarget(Notifier target)
Adapter.Internal
unsetTarget in interface Adapter.Internaltarget - the old notifier.Adapter.getTarget(),
Adapter.setTarget(Notifier)public void dispose()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||