Class TextFallbackCompareInputLabelProvider
java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.fallback.TextFallbackCompareInputLabelProvider
- All Implemented Interfaces:
org.eclipse.compare.ICompareInputLabelProvider
,org.eclipse.jface.viewers.IBaseLabelProvider
,org.eclipse.jface.viewers.ILabelProvider
public final class TextFallbackCompareInputLabelProvider
extends Object
implements org.eclipse.compare.ICompareInputLabelProvider
A specialized implementation of a compare input label provider.
-
Constructor Summary
ConstructorDescriptionTextFallbackCompareInputLabelProvider
(TextFallbackMergeViewer textFallbackMergeViewer, EMFCompareConfiguration configuration) Creates an instance for the given viewer and configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(org.eclipse.jface.viewers.ILabelProviderListener listener) void
dispose()
org.eclipse.swt.graphics.Image
getAncestorImage
(Object input) getAncestorLabel
(Object input) org.eclipse.swt.graphics.Image
org.eclipse.swt.graphics.Image
getLeftImage
(Object input) getLeftLabel
(Object input) org.eclipse.swt.graphics.Image
getRightImage
(Object input) getRightLabel
(Object input) boolean
isLabelProperty
(Object element, String property) void
removeListener
(org.eclipse.jface.viewers.ILabelProviderListener listener)
-
Constructor Details
-
TextFallbackCompareInputLabelProvider
public TextFallbackCompareInputLabelProvider(TextFallbackMergeViewer textFallbackMergeViewer, EMFCompareConfiguration configuration) Creates an instance for the given viewer and configuration.- Parameters:
textFallbackMergeViewer
- the viewer for which labels are being providedconfiguration
- the configuration used to provide labels.
-
-
Method Details
-
getImage
This is never called and always return
null
.- Specified by:
getImage
in interfaceorg.eclipse.jface.viewers.ILabelProvider
- See Also:
-
ILabelProvider.getImage(Object)
-
getText
This is never called and always return
null
.- Specified by:
getText
in interfaceorg.eclipse.jface.viewers.ILabelProvider
- See Also:
-
ILabelProvider.getText(Object)
-
addListener
public void addListener(org.eclipse.jface.viewers.ILabelProviderListener listener) This implementation has no state so ignores listeners.
- Specified by:
addListener
in interfaceorg.eclipse.jface.viewers.IBaseLabelProvider
- See Also:
-
IBaseLabelProvider.addListener(ILabelProviderListener)
-
dispose
public void dispose()This implementation has no state so does nothing.
- Specified by:
dispose
in interfaceorg.eclipse.jface.viewers.IBaseLabelProvider
- See Also:
-
IBaseLabelProvider.dispose()
-
isLabelProperty
This is never called and always returns
false
.- Specified by:
isLabelProperty
in interfaceorg.eclipse.jface.viewers.IBaseLabelProvider
- See Also:
-
IBaseLabelProvider.isLabelProperty(Object, String)
-
removeListener
public void removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener) This implementation has no state so ignores listeners.
- Specified by:
removeListener
in interfaceorg.eclipse.jface.viewers.IBaseLabelProvider
- See Also:
-
IBaseLabelProvider.removeListener(ILabelProviderListener)
-
getAncestorLabel
This implementation calls
getLabel(Resource, IStorage, boolean)
.- Specified by:
getAncestorLabel
in interfaceorg.eclipse.compare.ICompareInputLabelProvider
- See Also:
-
ICompareInputLabelProvider.getAncestorLabel(Object)
-
getAncestorImage
This implementation calls
getImage(Resource)
.- Specified by:
getAncestorImage
in interfaceorg.eclipse.compare.ICompareInputLabelProvider
- See Also:
-
ICompareInputLabelProvider.getAncestorImage(Object)
-
getLeftLabel
This implementation calls
getLabel(Resource, IStorage, boolean)
.- Specified by:
getLeftLabel
in interfaceorg.eclipse.compare.ICompareInputLabelProvider
- See Also:
-
ICompareInputLabelProvider.getLeftLabel(Object)
-
getLeftImage
This implementation calls
getImage(Resource)
.- Specified by:
getLeftImage
in interfaceorg.eclipse.compare.ICompareInputLabelProvider
- See Also:
-
ICompareInputLabelProvider.getLeftImage(Object)
-
getRightLabel
This implementation calls
getLabel(Resource, IStorage, boolean)
.- Specified by:
getRightLabel
in interfaceorg.eclipse.compare.ICompareInputLabelProvider
- See Also:
-
ICompareInputLabelProvider.getRightLabel(Object)
-
getRightImage
This implementation calls
getImage(Resource)
.- Specified by:
getRightImage
in interfaceorg.eclipse.compare.ICompareInputLabelProvider
- See Also:
-
ICompareInputLabelProvider.getRightImage(Object)
-