public class CompareItemProviderAdapterFactory extends CompareAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable
fireNotifyChanged.
The adapters also support Eclipse property sheets.
Note that most of the adapters are shared among multiple instances.
| Modifier and Type | Field and Description |
|---|---|
protected IChangeNotifier |
changeNotifier
This is used to implement
IChangeNotifier |
static String |
copyright |
protected Disposable |
disposable
This keeps track of all the item providers created, so that they can be disposed.
|
protected ComposedAdapterFactory |
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.
|
protected Collection<Object> |
supportedTypes
This keeps track of all the supported types checked by isFactoryForType.
|
modelPackage, modelSwitch| Constructor and Description |
|---|
CompareItemProviderAdapterFactory()
This constructs an instance
|
| Modifier and Type | Method and Description |
|---|---|
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
|
protected void |
associate(Adapter adapter,
Notifier target)
Associates an adapter with a notifier via the base implementation, then records it to ensure it will be disposed
|
Adapter |
createAttributeChangeAdapter()
This creates an adapter for a
AttributeChange |
Adapter |
createComparisonAdapter()
This creates an adapter for a
Comparison |
Adapter |
createConflictAdapter()
This creates an adapter for a
Conflict |
Adapter |
createDiffAdapter()
This creates an adapter for a
Diff |
Adapter |
createEquivalenceAdapter()
This creates an adapter for a
Equivalence |
Adapter |
createFeatureMapChangeAdapter()
This creates an adapter for a
FeatureMapChange |
Adapter |
createMatchAdapter()
This creates an adapter for a
Match |
Adapter |
createMatchResourceAdapter()
This creates an adapter for a
MatchResource |
Adapter |
createReferenceChangeAdapter()
This creates an adapter for a
ReferenceChange |
Adapter |
createResourceAttachmentChangeAdapter()
This creates an adapter for a ResourceAttachmentChange.
|
Adapter |
createResourceLocationChangeAdapter()
This creates an adapter for a
ResourceLocationChange |
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
|
createAdapter, createEObjectAdapteradaptAllNew, adaptNew, createAdapter, resolveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadaptAllNew, adaptNewpublic static final String copyright
protected ComposedAdapterFactory parentAdapterFactory
protected IChangeNotifier changeNotifier
IChangeNotifier.
protected Disposable disposable
disposed. protected Collection<Object> supportedTypes
isFactoryForType. public CompareItemProviderAdapterFactory()
public Adapter createComparisonAdapter()
Comparison.
createComparisonAdapter in class CompareAdapterFactoryComparisonpublic Adapter createMatchResourceAdapter()
MatchResource.
createMatchResourceAdapter in class CompareAdapterFactoryMatchResourcepublic Adapter createMatchAdapter()
Match.
createMatchAdapter in class CompareAdapterFactoryMatchpublic Adapter createDiffAdapter()
Diff.
createDiffAdapter in class CompareAdapterFactoryDiffpublic Adapter createResourceAttachmentChangeAdapter()
ResourceAttachmentChange. createResourceAttachmentChangeAdapter in class CompareAdapterFactoryResourceAttachmentChangepublic Adapter createResourceLocationChangeAdapter()
ResourceLocationChange.
createResourceLocationChangeAdapter in class CompareAdapterFactoryResourceLocationChangepublic Adapter createReferenceChangeAdapter()
ReferenceChange.
createReferenceChangeAdapter in class CompareAdapterFactoryReferenceChangepublic Adapter createAttributeChangeAdapter()
AttributeChange.
createAttributeChangeAdapter in class CompareAdapterFactoryAttributeChangepublic Adapter createFeatureMapChangeAdapter()
FeatureMapChange.
createFeatureMapChangeAdapter in class CompareAdapterFactoryFeatureMapChangepublic Adapter createConflictAdapter()
Conflict.
createConflictAdapter in class CompareAdapterFactoryConflictpublic Adapter createEquivalenceAdapter()
Equivalence.
createEquivalenceAdapter in class CompareAdapterFactoryEquivalencepublic ComposeableAdapterFactory getRootAdapterFactory()
getRootAdapterFactory in interface ComposeableAdapterFactorypublic void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
setParentAdapterFactory in interface ComposeableAdapterFactorypublic boolean isFactoryForType(Object type)
isFactoryForType in interface AdapterFactoryisFactoryForType in class CompareAdapterFactorypublic Adapter adapt(Notifier notifier, Object type)
adapt in interface AdapterFactoryadapt in class AdapterFactoryImplpublic Object adapt(Object object, Object type)
adapt in interface AdapterFactoryadapt in class AdapterFactoryImplprotected void associate(Adapter adapter, Notifier target)
associate in class AdapterFactoryImplpublic 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 (c) 2006, 2015 Obeo and others. All rights reserved.