public class EtypesItemProviderAdapterFactory extends EtypesAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender
fireNotifyChanged. The adapters
also support Eclipse property sheets. Note that most of the adapters are shared among multiple instances. IChildCreationExtender.Descriptor| Modifier and Type | Field and Description |
|---|---|
protected AnnotationItemProvider |
annotationItemProvider
This keeps track of the one adapter used for all
Annotation instances. |
protected IChangeNotifier |
changeNotifier
This is used to implement
IChangeNotifier. |
protected ChildCreationExtenderManager |
childCreationExtenderManager
This helps manage the child creation extenders.
|
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. |
modelPackage, modelSwitch| Constructor and Description |
|---|
EtypesItemProviderAdapterFactory()
This constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
createAnnotationAdapter()
This creates an adapter for a
Annotation. |
void |
dispose()
This disposes all of the item providers created by this factory.
|
void |
fireNotifyChanged(Notification notification)
This delegates to
changeNotifier and to parentAdapterFactory. |
java.util.List<IChildCreationExtender> |
getChildCreationExtenders() |
java.util.Collection<?> |
getNewChildDescriptors(java.lang.Object object,
EditingDomain editingDomain) |
ResourceLocator |
getResourceLocator() |
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.
|
createAdapter, createEObjectAdapter, createModelElementAdapteradaptAllNew, adaptNew, associate, createAdapter, resolveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadaptAllNew, adaptNewprotected ComposedAdapterFactory parentAdapterFactory
protected IChangeNotifier changeNotifier
IChangeNotifier.
protected ChildCreationExtenderManager childCreationExtenderManager
protected java.util.Collection<java.lang.Object> supportedTypes
isFactoryForType. protected AnnotationItemProvider annotationItemProvider
Annotation instances. public EtypesItemProviderAdapterFactory()
public Adapter createAnnotationAdapter()
Annotation.
createAnnotationAdapter in class EtypesAdapterFactoryAnnotationpublic 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 EtypesAdapterFactorypublic Adapter adapt(Notifier notifier, java.lang.Object type)
adapt in interface AdapterFactoryadapt in class AdapterFactoryImplpublic java.lang.Object adapt(java.lang.Object object,
java.lang.Object type)
adapt in interface AdapterFactoryadapt in class AdapterFactoryImplpublic java.util.List<IChildCreationExtender> getChildCreationExtenders()
public java.util.Collection<?> getNewChildDescriptors(java.lang.Object object,
EditingDomain editingDomain)
getNewChildDescriptors in interface IChildCreationExtenderpublic ResourceLocator getResourceLocator()
getResourceLocator in interface IChildCreationExtenderpublic 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 IDisposableCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html