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
Fields Modifier and Type Field Description protected ComposedAdapterFactoryparentAdapterFactoryThe composed adapter factory.protected Collection<Object>supportedTypesThis keeps track of all the supported types checked byisFactoryForType.-
Fields inherited from class org.eclipse.emf.compare.util.CompareAdapterFactory
copyright, modelPackage, modelSwitch
-
-
Constructor Summary
Constructors Constructor Description TooltipLabelAdapterFactory()The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdaptercreateAttributeChangeAdapter()Creates a new adapter for an object of class 'Attribute Change'.AdaptercreateFeatureMapChangeAdapter()Creates a new adapter for an object of class 'Feature Map Change'.AdaptercreateReferenceChangeAdapter()Creates a new adapter for an object of class 'Reference Change'.AdaptercreateResourceAttachmentChangeAdapter()Creates a new adapter for an object of class 'Resource Attachment Change'.AdaptercreateResourceLocationChangeAdapter()Creates a new adapter for an object of class 'Resource Location Change'.ComposeableAdapterFactorygetRootAdapterFactory()This returns the root adapter factory that contains this factory.booleanisFactoryForType(Object type)Returns whether this factory is applicable for the type of the object.voidsetParentAdapterFactory(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 Detail
-
parentAdapterFactory
protected ComposedAdapterFactory parentAdapterFactory
The composed adapter factory.
-
supportedTypes
protected Collection<Object> supportedTypes
This keeps track of all the supported types checked byisFactoryForType.
-
-
Method Detail
-
createAttributeChangeAdapter
public Adapter createAttributeChangeAdapter()
Description copied from class:CompareAdapterFactoryCreates 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:
createAttributeChangeAdapterin classCompareAdapterFactory- Returns:
- the new adapter.
- See Also:
AttributeChange
-
createFeatureMapChangeAdapter
public Adapter createFeatureMapChangeAdapter()
Description copied from class:CompareAdapterFactoryCreates 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:
createFeatureMapChangeAdapterin classCompareAdapterFactory- Returns:
- the new adapter.
- See Also:
FeatureMapChange
-
createReferenceChangeAdapter
public Adapter createReferenceChangeAdapter()
Description copied from class:CompareAdapterFactoryCreates 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:
createReferenceChangeAdapterin classCompareAdapterFactory- Returns:
- the new adapter.
- See Also:
ReferenceChange
-
createResourceAttachmentChangeAdapter
public Adapter createResourceAttachmentChangeAdapter()
Description copied from class:CompareAdapterFactoryCreates 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:
createResourceAttachmentChangeAdapterin classCompareAdapterFactory- Returns:
- the new adapter.
- See Also:
ResourceAttachmentChange
-
createResourceLocationChangeAdapter
public Adapter createResourceLocationChangeAdapter()
Description copied from class:CompareAdapterFactoryCreates 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:
createResourceLocationChangeAdapterin classCompareAdapterFactory- Returns:
- the new adapter.
- See Also:
ResourceLocationChange
-
getRootAdapterFactory
public ComposeableAdapterFactory getRootAdapterFactory()
This returns the root adapter factory that contains this factory.- Specified by:
getRootAdapterFactoryin interfaceComposeableAdapterFactory- Returns:
- the composed adapter factory
-
setParentAdapterFactory
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.- Specified by:
setParentAdapterFactoryin interfaceComposeableAdapterFactory- Parameters:
parentAdapterFactory- The composed adapter factory
-
isFactoryForType
public boolean isFactoryForType(Object type)
Description copied from class:CompareAdapterFactoryReturns whether this factory is applicable for the type of the object. This implementation returnstrueif the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForTypein interfaceAdapterFactory- Overrides:
isFactoryForTypein classCompareAdapterFactory- Returns:
- whether this factory is applicable for the type of the object.
-
-