de.cau.cs.kieler.core.annotations.provider
Class AnnotationsItemProviderAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by de.cau.cs.kieler.core.annotations.util.AnnotationsAdapterFactory
          extended by de.cau.cs.kieler.core.annotations.provider.AnnotationsItemProviderAdapterFactory
All Implemented Interfaces:
AdapterFactory, ComposeableAdapterFactory, IChangeNotifier, IDisposable

public class AnnotationsItemProviderAdapterFactory
extends AnnotationsAdapterFactory
implements ComposeableAdapterFactory, IChangeNotifier, IDisposable

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.

Rating red
Generated:
This code was automatically generated.

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

parentAdapterFactory

protected ComposedAdapterFactory parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.

Generated:
This code was automatically generated.

changeNotifier

protected IChangeNotifier changeNotifier
This is used to implement IChangeNotifier.

Generated:
This code was automatically generated.

supportedTypes

protected Collection<Object> supportedTypes
This keeps track of all the supported types checked by isFactoryForType.

Generated:
This code was automatically generated.

annotationItemProvider

protected AnnotationItemProvider annotationItemProvider
This keeps track of the one adapter used for all Annotation instances.

Generated:
This code was automatically generated.

stringAnnotationItemProvider

protected StringAnnotationItemProvider stringAnnotationItemProvider
This keeps track of the one adapter used for all StringAnnotation instances.

Generated:
This code was automatically generated.

referenceAnnotationItemProvider

protected ReferenceAnnotationItemProvider referenceAnnotationItemProvider
This keeps track of the one adapter used for all ReferenceAnnotation instances.

Generated:
This code was automatically generated.

booleanAnnotationItemProvider

protected BooleanAnnotationItemProvider booleanAnnotationItemProvider
This keeps track of the one adapter used for all BooleanAnnotation instances.

Generated:
This code was automatically generated.

intAnnotationItemProvider

protected IntAnnotationItemProvider intAnnotationItemProvider
This keeps track of the one adapter used for all IntAnnotation instances.

Generated:
This code was automatically generated.

floatAnnotationItemProvider

protected FloatAnnotationItemProvider floatAnnotationItemProvider
This keeps track of the one adapter used for all FloatAnnotation instances.

Generated:
This code was automatically generated.

containmentAnnotationItemProvider

protected ContainmentAnnotationItemProvider containmentAnnotationItemProvider
This keeps track of the one adapter used for all ContainmentAnnotation instances.

Generated:
This code was automatically generated.

importAnnotationItemProvider

protected ImportAnnotationItemProvider importAnnotationItemProvider
This keeps track of the one adapter used for all ImportAnnotation instances.

Generated:
This code was automatically generated.

typedStringAnnotationItemProvider

protected TypedStringAnnotationItemProvider typedStringAnnotationItemProvider
This keeps track of the one adapter used for all TypedStringAnnotation instances.

Generated:
This code was automatically generated.
Constructor Detail

AnnotationsItemProviderAdapterFactory

public AnnotationsItemProviderAdapterFactory()
This constructs an instance.

Generated:
This code was automatically generated.
Method Detail

createAnnotationAdapter

public Adapter createAnnotationAdapter()
This creates an adapter for a Annotation.

Overrides:
createAnnotationAdapter in class AnnotationsAdapterFactory
Returns:
the new adapter.
See Also:
Annotation
Generated:
This code was automatically generated.

createStringAnnotationAdapter

public Adapter createStringAnnotationAdapter()
This creates an adapter for a StringAnnotation.

Overrides:
createStringAnnotationAdapter in class AnnotationsAdapterFactory
Returns:
the new adapter.
See Also:
StringAnnotation
Generated:
This code was automatically generated.

createReferenceAnnotationAdapter

public Adapter createReferenceAnnotationAdapter()
This creates an adapter for a ReferenceAnnotation.

Overrides:
createReferenceAnnotationAdapter in class AnnotationsAdapterFactory
Returns:
the new adapter.
See Also:
ReferenceAnnotation
Generated:
This code was automatically generated.

createBooleanAnnotationAdapter

public Adapter createBooleanAnnotationAdapter()
This creates an adapter for a BooleanAnnotation.

Overrides:
createBooleanAnnotationAdapter in class AnnotationsAdapterFactory
Returns:
the new adapter.
See Also:
BooleanAnnotation
Generated:
This code was automatically generated.

createIntAnnotationAdapter

public Adapter createIntAnnotationAdapter()
This creates an adapter for a IntAnnotation.

Overrides:
createIntAnnotationAdapter in class AnnotationsAdapterFactory
Returns:
the new adapter.
See Also:
IntAnnotation
Generated:
This code was automatically generated.

createFloatAnnotationAdapter

public Adapter createFloatAnnotationAdapter()
This creates an adapter for a FloatAnnotation.

Overrides:
createFloatAnnotationAdapter in class AnnotationsAdapterFactory
Returns:
the new adapter.
See Also:
FloatAnnotation
Generated:
This code was automatically generated.

createContainmentAnnotationAdapter

public Adapter createContainmentAnnotationAdapter()
This creates an adapter for a ContainmentAnnotation.

Overrides:
createContainmentAnnotationAdapter in class AnnotationsAdapterFactory
Returns:
the new adapter.
See Also:
ContainmentAnnotation
Generated:
This code was automatically generated.

createImportAnnotationAdapter

public Adapter createImportAnnotationAdapter()
This creates an adapter for a ImportAnnotation.

Overrides:
createImportAnnotationAdapter in class AnnotationsAdapterFactory
Returns:
the new adapter.
See Also:
ImportAnnotation
Generated:
This code was automatically generated.

createTypedStringAnnotationAdapter

public Adapter createTypedStringAnnotationAdapter()
This creates an adapter for a TypedStringAnnotation.

Overrides:
createTypedStringAnnotationAdapter in class AnnotationsAdapterFactory
Returns:
the new adapter.
See Also:
TypedStringAnnotation
Generated:
This code was automatically generated.

getRootAdapterFactory

public ComposeableAdapterFactory getRootAdapterFactory()
This returns the root adapter factory that contains this factory.

Specified by:
getRootAdapterFactory in interface ComposeableAdapterFactory
Generated:
This code was automatically generated.

setParentAdapterFactory

public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.

Specified by:
setParentAdapterFactory in interface ComposeableAdapterFactory
Generated:
This code was automatically generated.

isFactoryForType

public boolean isFactoryForType(Object type)

Specified by:
isFactoryForType in interface AdapterFactory
Overrides:
isFactoryForType in class AnnotationsAdapterFactory
Returns:
whether this factory is applicable for the type of the object.
Generated:
This code was automatically generated.

adapt

public Adapter adapt(Notifier notifier,
                     Object type)
This implementation substitutes the factory itself as the key for the adapter.

Specified by:
adapt in interface AdapterFactory
Overrides:
adapt in class AdapterFactoryImpl
Generated:
This code was automatically generated.

adapt

public Object adapt(Object object,
                    Object type)

Specified by:
adapt in interface AdapterFactory
Overrides:
adapt in class AdapterFactoryImpl
Generated:
This code was automatically generated.

addListener

public void addListener(INotifyChangedListener notifyChangedListener)
This adds a listener.

Specified by:
addListener in interface IChangeNotifier
Generated:
This code was automatically generated.

removeListener

public void removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.

Specified by:
removeListener in interface IChangeNotifier
Generated:
This code was automatically generated.

fireNotifyChanged

public void fireNotifyChanged(Notification notification)
This delegates to changeNotifier and to parentAdapterFactory.

Specified by:
fireNotifyChanged in interface IChangeNotifier
Generated:
This code was automatically generated.

dispose

public void dispose()
This disposes all of the item providers created by this factory.

Specified by:
dispose in interface IDisposable
Generated:
This code was automatically generated.