|
||||||||||
| 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
org.eclipse.emf.ecore.xcore.util.XcoreAdapterFactory
org.eclipse.emf.ecore.xcore.provider.XcoreItemProviderAdapterFactory
public class XcoreItemProviderAdapterFactory
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 IChangeNotifier |
changeNotifier
This is used to implement IChangeNotifier |
protected ComposedAdapterFactory |
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory |
protected java.util.Collection<java.lang.Object> |
supportedTypes
This keeps track of all the supported types checked by isFactoryForType |
protected XAnnotationDirectiveItemProvider |
xAnnotationDirectiveItemProvider
This keeps track of the one adapter used for all XAnnotationDirective instances |
protected XAnnotationItemProvider |
xAnnotationItemProvider
This keeps track of the one adapter used for all XAnnotation instances |
protected XAttributeItemProvider |
xAttributeItemProvider
This keeps track of the one adapter used for all XAttribute instances |
protected XClassItemProvider |
xClassItemProvider
This keeps track of the one adapter used for all XClass instances |
protected XDataTypeItemProvider |
xDataTypeItemProvider
This keeps track of the one adapter used for all XDataType instances |
protected XEnumItemProvider |
xEnumItemProvider
This keeps track of the one adapter used for all XEnum instances |
protected XEnumLiteralItemProvider |
xEnumLiteralItemProvider
This keeps track of the one adapter used for all XEnumLiteral instances |
protected XGenericTypeItemProvider |
xGenericTypeItemProvider
This keeps track of the one adapter used for all XGenericType instances |
protected XImportDirectiveItemProvider |
xImportDirectiveItemProvider
This keeps track of the one adapter used for all XImportDirective instances |
protected XOperationItemProvider |
xOperationItemProvider
This keeps track of the one adapter used for all XOperation instances |
protected XPackageItemProvider |
xPackageItemProvider
This keeps track of the one adapter used for all XPackage instances |
protected XParameterItemProvider |
xParameterItemProvider
This keeps track of the one adapter used for all XParameter instances |
protected XReferenceItemProvider |
xReferenceItemProvider
This keeps track of the one adapter used for all XReference instances |
protected XStringToStringMapEntryItemProvider |
xStringToStringMapEntryItemProvider
This keeps track of the one adapter used for all Map.Entry instances |
protected XTypeParameterItemProvider |
xTypeParameterItemProvider
This keeps track of the one adapter used for all XTypeParameter instances |
| Fields inherited from class org.eclipse.emf.ecore.xcore.util.XcoreAdapterFactory |
|---|
modelPackage, modelSwitch |
| Constructor Summary | |
|---|---|
XcoreItemProviderAdapterFactory()
This constructs an instance |
|
| Method Summary | |
|---|---|
Adapter |
adapt(Notifier notifier,
java.lang.Object type)
This implementation substitutes the factory itself as the key for the adapter |
java.lang.Object |
adapt(java.lang.Object object,
java.lang.Object type)
|
void |
addListener(INotifyChangedListener notifyChangedListener)
This adds a listener |
Adapter |
createXAnnotationAdapter()
This creates an adapter for a XAnnotation |
Adapter |
createXAnnotationDirectiveAdapter()
This creates an adapter for a XAnnotationDirective |
Adapter |
createXAttributeAdapter()
This creates an adapter for a XAttribute |
Adapter |
createXClassAdapter()
This creates an adapter for a XClass |
Adapter |
createXDataTypeAdapter()
This creates an adapter for a XDataType |
Adapter |
createXEnumAdapter()
This creates an adapter for a XEnum |
Adapter |
createXEnumLiteralAdapter()
This creates an adapter for a XEnumLiteral |
Adapter |
createXGenericTypeAdapter()
This creates an adapter for a XGenericType |
Adapter |
createXImportDirectiveAdapter()
This creates an adapter for a XImportDirective |
Adapter |
createXOperationAdapter()
This creates an adapter for a XOperation |
Adapter |
createXPackageAdapter()
This creates an adapter for a XPackage |
Adapter |
createXParameterAdapter()
This creates an adapter for a XParameter |
Adapter |
createXReferenceAdapter()
This creates an adapter for a XReference |
Adapter |
createXStringToStringMapEntryAdapter()
This creates an adapter for a Map.Entry |
Adapter |
createXTypeParameterAdapter()
This creates an adapter for a XTypeParameter |
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(java.lang.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 org.eclipse.emf.ecore.xcore.util.XcoreAdapterFactory |
|---|
createAdapter, createEObjectAdapter, createXClassifierAdapter, createXMemberAdapter, createXModelElementAdapter, createXNamedElementAdapter, createXStructuralFeatureAdapter, createXTypedElementAdapter |
| 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 java.util.Collection<java.lang.Object> supportedTypes
isFactoryForType.
protected XAnnotationItemProvider xAnnotationItemProvider
XAnnotation instances.
protected XAnnotationDirectiveItemProvider xAnnotationDirectiveItemProvider
XAnnotationDirective instances.
protected XAttributeItemProvider xAttributeItemProvider
XAttribute instances.
protected XClassItemProvider xClassItemProvider
XClass instances.
protected XDataTypeItemProvider xDataTypeItemProvider
XDataType instances.
protected XEnumItemProvider xEnumItemProvider
XEnum instances.
protected XEnumLiteralItemProvider xEnumLiteralItemProvider
XEnumLiteral instances.
protected XGenericTypeItemProvider xGenericTypeItemProvider
XGenericType instances.
protected XImportDirectiveItemProvider xImportDirectiveItemProvider
XImportDirective instances.
protected XOperationItemProvider xOperationItemProvider
XOperation instances.
protected XPackageItemProvider xPackageItemProvider
XPackage instances.
protected XParameterItemProvider xParameterItemProvider
XParameter instances.
protected XReferenceItemProvider xReferenceItemProvider
XReference instances.
protected XStringToStringMapEntryItemProvider xStringToStringMapEntryItemProvider
Map.Entry instances.
protected XTypeParameterItemProvider xTypeParameterItemProvider
XTypeParameter instances.
| Constructor Detail |
|---|
public XcoreItemProviderAdapterFactory()
| Method Detail |
|---|
public Adapter createXAnnotationAdapter()
XAnnotation.
createXAnnotationAdapter in class XcoreAdapterFactoryXAnnotationpublic Adapter createXAnnotationDirectiveAdapter()
XAnnotationDirective.
createXAnnotationDirectiveAdapter in class XcoreAdapterFactoryXAnnotationDirectivepublic Adapter createXAttributeAdapter()
XAttribute.
createXAttributeAdapter in class XcoreAdapterFactoryXAttributepublic Adapter createXClassAdapter()
XClass.
createXClassAdapter in class XcoreAdapterFactoryXClasspublic Adapter createXDataTypeAdapter()
XDataType.
createXDataTypeAdapter in class XcoreAdapterFactoryXDataTypepublic Adapter createXEnumAdapter()
XEnum.
createXEnumAdapter in class XcoreAdapterFactoryXEnumpublic Adapter createXEnumLiteralAdapter()
XEnumLiteral.
createXEnumLiteralAdapter in class XcoreAdapterFactoryXEnumLiteralpublic Adapter createXGenericTypeAdapter()
XGenericType.
createXGenericTypeAdapter in class XcoreAdapterFactoryXGenericTypepublic Adapter createXImportDirectiveAdapter()
XImportDirective.
createXImportDirectiveAdapter in class XcoreAdapterFactoryXImportDirectivepublic Adapter createXOperationAdapter()
XOperation.
createXOperationAdapter in class XcoreAdapterFactoryXOperationpublic Adapter createXPackageAdapter()
XPackage.
createXPackageAdapter in class XcoreAdapterFactoryXPackagepublic Adapter createXParameterAdapter()
XParameter.
createXParameterAdapter in class XcoreAdapterFactoryXParameterpublic Adapter createXReferenceAdapter()
XReference.
createXReferenceAdapter in class XcoreAdapterFactoryXReferencepublic Adapter createXStringToStringMapEntryAdapter()
Map.Entry.
createXStringToStringMapEntryAdapter in class XcoreAdapterFactoryMap.Entrypublic Adapter createXTypeParameterAdapter()
XTypeParameter.
createXTypeParameterAdapter in class XcoreAdapterFactoryXTypeParameterpublic ComposeableAdapterFactory getRootAdapterFactory()
getRootAdapterFactory in interface ComposeableAdapterFactorypublic void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
setParentAdapterFactory in interface ComposeableAdapterFactorypublic boolean isFactoryForType(java.lang.Object type)
isFactoryForType in interface AdapterFactoryisFactoryForType in class XcoreAdapterFactorytype - the key indicating the type of adapter in question.
Adapter.isAdapterForType(java.lang.Object)
public Adapter adapt(Notifier notifier,
java.lang.Object type)
adapt in interface AdapterFactoryadapt in class AdapterFactoryImplnotifier - the notifier to adapt.type - the key indicating the type of adapter required.
null otherwise.Adapter.setTarget(org.eclipse.emf.common.notify.Notifier),
AdapterFactory.adaptNew(org.eclipse.emf.common.notify.Notifier, java.lang.Object)
public java.lang.Object adapt(java.lang.Object object,
java.lang.Object type)
adapt in interface AdapterFactoryadapt in class AdapterFactoryImplobject - arbitrary object to adapt.type - the key indicating the type of adapter required.
AdapterFactoryImpl.adapt(Notifier,Object),
AdapterFactoryImpl.resolve(Object, Object)public void addListener(INotifyChangedListener notifyChangedListener)
addListener in interface IChangeNotifierpublic void removeListener(INotifyChangedListener notifyChangedListener)
removeListener in interface IChangeNotifierpublic void fireNotifyChanged(Notification notification)
changeNotifier and to parentAdapterFactory.
fireNotifyChanged in interface IChangeNotifierpublic void dispose()
dispose in interface IDisposable
|
Copyright 2001-2012 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||