Class TreeCompareInputAdapterFactory
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
org.eclipse.emf.edit.tree.util.TreeAdapterFactory
org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.provider.TreeCompareInputAdapterFactory
- All Implemented Interfaces:
AdapterFactory
,ComposeableAdapterFactory
,IChangeNotifier
,IDisposable
public class TreeCompareInputAdapterFactory
extends TreeAdapterFactory
implements ComposeableAdapterFactory, IChangeNotifier, IDisposable
-
Field Summary
Modifier and TypeFieldDescriptionprotected final IChangeNotifier
This is used to implementIChangeNotifier
.protected Disposable
This is used to implementIDisposable
.protected ComposedAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.protected final Collection<Object>
This keeps track of all the supported types checked byisFactoryForType
.Fields inherited from class org.eclipse.emf.edit.tree.util.TreeAdapterFactory
modelPackage, modelSwitch
-
Constructor Summary
ConstructorDescriptionCreates anComposeableAdapterFactory
with the following supported types:ICompareInput
. -
Method Summary
Modifier and TypeMethodDescriptionThis implementation substitutes the factory itself as the key for the adapter.This records adapters for subsequent disposable.void
addListener
(INotifyChangedListener notifyChangedListener) This adds a listener.void
dispose()
This disposes all the disposables.void
fireNotifyChanged
(Notification notification) This delegates tochangeNotifier
and toparentAdapterFactory
.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 direct parent adapter factory into which this factory is composed.Methods inherited from class org.eclipse.emf.edit.tree.util.TreeAdapterFactory
createAdapter, createEObjectAdapter
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adaptAllNew, 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
-
Field Details
-
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory. -
changeNotifier
This is used to implementIChangeNotifier
. -
disposable
This is used to implementIDisposable
. -
supportedTypes
This keeps track of all the supported types checked byisFactoryForType
.
-
-
Constructor Details
-
TreeCompareInputAdapterFactory
public TreeCompareInputAdapterFactory()Creates anComposeableAdapterFactory
with the following supported types:ICompareInput
.
- Parameters:
grouper
- This will be used by the comparison adapter to group differences together.
-
-
Method Details
-
isFactoryForType
- Specified by:
isFactoryForType
in interfaceAdapterFactory
- Overrides:
isFactoryForType
in classTreeAdapterFactory
- See Also:
-
adapt
This implementation substitutes the factory itself as the key for the adapter.- Specified by:
adapt
in interfaceAdapterFactory
- Overrides:
adapt
in classAdapterFactoryImpl
- Parameters:
notifier
- the notifier to adapttype
- unused- Returns:
- a previously existing associated adapter, a new associated adapter if possible, or
null
otherwise.
-
adapt
- Specified by:
adapt
in interfaceAdapterFactory
- Overrides:
adapt
in classAdapterFactoryImpl
- See Also:
-
getRootAdapterFactory
This returns the root adapter factory that contains this factory.- Specified by:
getRootAdapterFactory
in interfaceComposeableAdapterFactory
- Returns:
- the root adapter factory that contains this factory.
-
setParentAdapterFactory
This sets the direct parent adapter factory into which this factory is composed.- Specified by:
setParentAdapterFactory
in interfaceComposeableAdapterFactory
- Parameters:
parentAdapterFactory
- the direct parent adapter factory into which this factory is composed
-
createTreeNodeAdapter
- Overrides:
createTreeNodeAdapter
in classTreeAdapterFactory
- See Also:
-
adaptNew
This records adapters for subsequent disposable.- Specified by:
adaptNew
in interfaceAdapterFactory
- Overrides:
adaptNew
in classAdapterFactoryImpl
-
addListener
This adds a listener.- Specified by:
addListener
in interfaceIChangeNotifier
-
removeListener
This removes a listener.- Specified by:
removeListener
in interfaceIChangeNotifier
-
fireNotifyChanged
This delegates tochangeNotifier
and toparentAdapterFactory
.- Specified by:
fireNotifyChanged
in interfaceIChangeNotifier
-
dispose
public void dispose()This disposes all the disposables.- Specified by:
dispose
in interfaceIDisposable
-