|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl
de.cau.cs.kieler.core.annotations.util.AnnotationsAdapterFactory
de.cau.cs.kieler.core.annotations.provider.AnnotationsItemProviderAdapterFactory
public class AnnotationsItemProviderAdapterFactory
This is the factory that is used to provide the interfaces needed to support Viewers.
The adapters generated by this factory convert EMF adapter notifications into calls to fireNotifyChanged
.
The adapters also support Eclipse property sheets.
Note that most of the adapters are shared among multiple instances.
Field Summary | |
---|---|
protected AnnotationItemProvider |
annotationItemProvider
This keeps track of the one adapter used for all Annotation instances. |
protected BooleanAnnotationItemProvider |
booleanAnnotationItemProvider
This keeps track of the one adapter used for all BooleanAnnotation instances. |
protected IChangeNotifier |
changeNotifier
This is used to implement IChangeNotifier . |
protected ContainmentAnnotationItemProvider |
containmentAnnotationItemProvider
This keeps track of the one adapter used for all ContainmentAnnotation instances. |
protected FloatAnnotationItemProvider |
floatAnnotationItemProvider
This keeps track of the one adapter used for all FloatAnnotation instances. |
protected ImportAnnotationItemProvider |
importAnnotationItemProvider
This keeps track of the one adapter used for all ImportAnnotation instances. |
protected IntAnnotationItemProvider |
intAnnotationItemProvider
This keeps track of the one adapter used for all IntAnnotation instances. |
protected ComposedAdapterFactory |
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory. |
protected ReferenceAnnotationItemProvider |
referenceAnnotationItemProvider
This keeps track of the one adapter used for all ReferenceAnnotation instances. |
protected StringAnnotationItemProvider |
stringAnnotationItemProvider
This keeps track of the one adapter used for all StringAnnotation instances. |
protected Collection<Object> |
supportedTypes
This keeps track of all the supported types checked by isFactoryForType . |
protected TypedStringAnnotationItemProvider |
typedStringAnnotationItemProvider
This keeps track of the one adapter used for all TypedStringAnnotation instances. |
Fields inherited from class de.cau.cs.kieler.core.annotations.util.AnnotationsAdapterFactory |
---|
modelPackage, modelSwitch |
Constructor Summary | |
---|---|
AnnotationsItemProviderAdapterFactory()
This constructs an instance. |
Method Summary | |
---|---|
Adapter |
adapt(Notifier notifier,
Object type)
This implementation substitutes the factory itself as the key for the adapter. |
Object |
adapt(Object object,
Object type)
|
void |
addListener(INotifyChangedListener notifyChangedListener)
This adds a listener. |
Adapter |
createAnnotationAdapter()
This creates an adapter for a Annotation . |
Adapter |
createBooleanAnnotationAdapter()
This creates an adapter for a BooleanAnnotation . |
Adapter |
createContainmentAnnotationAdapter()
This creates an adapter for a ContainmentAnnotation . |
Adapter |
createFloatAnnotationAdapter()
This creates an adapter for a FloatAnnotation . |
Adapter |
createImportAnnotationAdapter()
This creates an adapter for a ImportAnnotation . |
Adapter |
createIntAnnotationAdapter()
This creates an adapter for a IntAnnotation . |
Adapter |
createReferenceAnnotationAdapter()
This creates an adapter for a ReferenceAnnotation . |
Adapter |
createStringAnnotationAdapter()
This creates an adapter for a StringAnnotation . |
Adapter |
createTypedStringAnnotationAdapter()
This creates an adapter for a TypedStringAnnotation . |
void |
dispose()
This disposes all of the item providers created by this factory. |
void |
fireNotifyChanged(Notification notification)
This delegates to changeNotifier and to parentAdapterFactory . |
ComposeableAdapterFactory |
getRootAdapterFactory()
This returns the root adapter factory that contains this factory. |
boolean |
isFactoryForType(Object type)
|
void |
removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener. |
void |
setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory. |
Methods inherited from class de.cau.cs.kieler.core.annotations.util.AnnotationsAdapterFactory |
---|
createAdapter, createAnnotatableAdapter, createEObjectAdapter, createNamedObjectAdapter |
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl |
---|
adaptAllNew, adaptNew, associate, createAdapter, resolve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.notify.AdapterFactory |
---|
adaptAllNew, adaptNew |
Field Detail |
---|
protected ComposedAdapterFactory parentAdapterFactory
protected IChangeNotifier changeNotifier
IChangeNotifier
.
protected Collection<Object> supportedTypes
isFactoryForType
.
protected AnnotationItemProvider annotationItemProvider
Annotation
instances.
protected StringAnnotationItemProvider stringAnnotationItemProvider
StringAnnotation
instances.
protected ReferenceAnnotationItemProvider referenceAnnotationItemProvider
ReferenceAnnotation
instances.
protected BooleanAnnotationItemProvider booleanAnnotationItemProvider
BooleanAnnotation
instances.
protected IntAnnotationItemProvider intAnnotationItemProvider
IntAnnotation
instances.
protected FloatAnnotationItemProvider floatAnnotationItemProvider
FloatAnnotation
instances.
protected ContainmentAnnotationItemProvider containmentAnnotationItemProvider
ContainmentAnnotation
instances.
protected ImportAnnotationItemProvider importAnnotationItemProvider
ImportAnnotation
instances.
protected TypedStringAnnotationItemProvider typedStringAnnotationItemProvider
TypedStringAnnotation
instances.
Constructor Detail |
---|
public AnnotationsItemProviderAdapterFactory()
Method Detail |
---|
public Adapter createAnnotationAdapter()
Annotation
.
createAnnotationAdapter
in class AnnotationsAdapterFactory
Annotation
public Adapter createStringAnnotationAdapter()
StringAnnotation
.
createStringAnnotationAdapter
in class AnnotationsAdapterFactory
StringAnnotation
public Adapter createReferenceAnnotationAdapter()
ReferenceAnnotation
.
createReferenceAnnotationAdapter
in class AnnotationsAdapterFactory
ReferenceAnnotation
public Adapter createBooleanAnnotationAdapter()
BooleanAnnotation
.
createBooleanAnnotationAdapter
in class AnnotationsAdapterFactory
BooleanAnnotation
public Adapter createIntAnnotationAdapter()
IntAnnotation
.
createIntAnnotationAdapter
in class AnnotationsAdapterFactory
IntAnnotation
public Adapter createFloatAnnotationAdapter()
FloatAnnotation
.
createFloatAnnotationAdapter
in class AnnotationsAdapterFactory
FloatAnnotation
public Adapter createContainmentAnnotationAdapter()
ContainmentAnnotation
.
createContainmentAnnotationAdapter
in class AnnotationsAdapterFactory
ContainmentAnnotation
public Adapter createImportAnnotationAdapter()
ImportAnnotation
.
createImportAnnotationAdapter
in class AnnotationsAdapterFactory
ImportAnnotation
public Adapter createTypedStringAnnotationAdapter()
TypedStringAnnotation
.
createTypedStringAnnotationAdapter
in class AnnotationsAdapterFactory
TypedStringAnnotation
public ComposeableAdapterFactory getRootAdapterFactory()
getRootAdapterFactory
in interface ComposeableAdapterFactory
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
setParentAdapterFactory
in interface ComposeableAdapterFactory
public boolean isFactoryForType(Object type)
isFactoryForType
in interface AdapterFactory
isFactoryForType
in class AnnotationsAdapterFactory
public Adapter adapt(Notifier notifier, Object type)
adapt
in interface AdapterFactory
adapt
in class AdapterFactoryImpl
public Object adapt(Object object, Object type)
adapt
in interface AdapterFactory
adapt
in class AdapterFactoryImpl
public void addListener(INotifyChangedListener notifyChangedListener)
addListener
in interface IChangeNotifier
public void removeListener(INotifyChangedListener notifyChangedListener)
removeListener
in interface IChangeNotifier
public void fireNotifyChanged(Notification notification)
changeNotifier
and to parentAdapterFactory
.
fireNotifyChanged
in interface IChangeNotifier
public void dispose()
dispose
in interface IDisposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |