Package org.eclipse.emf.compare.provider
Class TooltipLabelAdapterFactory
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
org.eclipse.emf.compare.util.CompareAdapterFactory
org.eclipse.emf.compare.provider.TooltipLabelAdapterFactory
- All Implemented Interfaces:
AdapterFactory
,ComposeableAdapterFactory
public class TooltipLabelAdapterFactory
extends CompareAdapterFactory
implements ComposeableAdapterFactory
SuperClass of factories that need to access tooltips labels.
- Since:
- 4.2
-
Field Summary
Modifier and TypeFieldDescriptionprotected ComposedAdapterFactory
The composed adapter factory.protected Collection<Object>
This keeps track of all the supported types checked byisFactoryForType
.Fields inherited from class org.eclipse.emf.compare.util.CompareAdapterFactory
copyright, modelPackage, modelSwitch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new adapter for an object of class 'Attribute Change
'.Creates a new adapter for an object of class 'Feature Map Change
'.Creates a new adapter for an object of class 'Reference Change
'.Creates a new adapter for an object of class 'Resource Attachment Change
'.Creates a new adapter for an object of class 'Resource Location Change
'.This returns the root adapter factory that contains this factory.boolean
isFactoryForType
(Object type) Returns whether this factory is applicable for the type of the object.void
setParentAdapterFactory
(ComposedAdapterFactory parentAdapterFactory) This sets the composed adapter factory that contains this factory.Methods inherited from class org.eclipse.emf.compare.util.CompareAdapterFactory
createAdapter, createComparisonAdapter, createConflictAdapter, createDiffAdapter, createEObjectAdapter, createEquivalenceAdapter, createMatchAdapter, createMatchResourceAdapter
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adapt, 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
adapt, adapt, adaptAllNew, adaptNew
-
Field Details
-
parentAdapterFactory
The composed adapter factory. -
supportedTypes
This keeps track of all the supported types checked byisFactoryForType
.
-
-
Constructor Details
-
TooltipLabelAdapterFactory
public TooltipLabelAdapterFactory()The constructor.
-
-
Method Details
-
createAttributeChangeAdapter
Description copied from class:CompareAdapterFactory
Creates a new adapter for an object of class 'Attribute Change
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Overrides:
createAttributeChangeAdapter
in classCompareAdapterFactory
- Returns:
- the new adapter.
- See Also:
-
createFeatureMapChangeAdapter
Description copied from class:CompareAdapterFactory
Creates a new adapter for an object of class 'Feature Map Change
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Overrides:
createFeatureMapChangeAdapter
in classCompareAdapterFactory
- Returns:
- the new adapter.
- See Also:
-
createReferenceChangeAdapter
Description copied from class:CompareAdapterFactory
Creates a new adapter for an object of class 'Reference Change
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Overrides:
createReferenceChangeAdapter
in classCompareAdapterFactory
- Returns:
- the new adapter.
- See Also:
-
createResourceAttachmentChangeAdapter
Description copied from class:CompareAdapterFactory
Creates a new adapter for an object of class 'Resource Attachment Change
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Overrides:
createResourceAttachmentChangeAdapter
in classCompareAdapterFactory
- Returns:
- the new adapter.
- See Also:
-
createResourceLocationChangeAdapter
Description copied from class:CompareAdapterFactory
Creates a new adapter for an object of class 'Resource Location Change
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Overrides:
createResourceLocationChangeAdapter
in classCompareAdapterFactory
- Returns:
- the new adapter.
- See Also:
-
getRootAdapterFactory
This returns the root adapter factory that contains this factory.- Specified by:
getRootAdapterFactory
in interfaceComposeableAdapterFactory
- Returns:
- the composed adapter factory
-
setParentAdapterFactory
This sets the composed adapter factory that contains this factory.- Specified by:
setParentAdapterFactory
in interfaceComposeableAdapterFactory
- Parameters:
parentAdapterFactory
- The composed adapter factory
-
isFactoryForType
Description copied from class:CompareAdapterFactory
Returns whether this factory is applicable for the type of the object. This implementation returnstrue
if the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForType
in interfaceAdapterFactory
- Overrides:
isFactoryForType
in classCompareAdapterFactory
- Returns:
- whether this factory is applicable for the type of the object.
-