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, createEObjectAdapter
adaptAllNew, adaptNew, createAdapter, resolve
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adaptAllNew, adaptNew
public 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 CompareAdapterFactory
Comparison
public Adapter createMatchResourceAdapter()
MatchResource
.
createMatchResourceAdapter
in class CompareAdapterFactory
MatchResource
public Adapter createMatchAdapter()
Match
.
createMatchAdapter
in class CompareAdapterFactory
Match
public Adapter createDiffAdapter()
Diff
.
createDiffAdapter
in class CompareAdapterFactory
Diff
public Adapter createResourceAttachmentChangeAdapter()
ResourceAttachmentChange
. createResourceAttachmentChangeAdapter
in class CompareAdapterFactory
ResourceAttachmentChange
public Adapter createResourceLocationChangeAdapter()
ResourceLocationChange
.
createResourceLocationChangeAdapter
in class CompareAdapterFactory
ResourceLocationChange
public Adapter createReferenceChangeAdapter()
ReferenceChange
.
createReferenceChangeAdapter
in class CompareAdapterFactory
ReferenceChange
public Adapter createAttributeChangeAdapter()
AttributeChange
.
createAttributeChangeAdapter
in class CompareAdapterFactory
AttributeChange
public Adapter createFeatureMapChangeAdapter()
FeatureMapChange
.
createFeatureMapChangeAdapter
in class CompareAdapterFactory
FeatureMapChange
public Adapter createConflictAdapter()
Conflict
.
createConflictAdapter
in class CompareAdapterFactory
Conflict
public Adapter createEquivalenceAdapter()
Equivalence
.
createEquivalenceAdapter
in class CompareAdapterFactory
Equivalence
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 CompareAdapterFactory
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
protected void associate(Adapter adapter, Notifier target)
associate
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
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.