public abstract class AbstractSynchronizationLabelProvider extends SynchronizationLabelProvider
This class overrides several methods from
SynchronizationLabelProvider
to customize the rendering of
refactoring history objects in team synchronization views.
Note: this class is designed to be extended by clients. Programming language implementers who need refactoring support in a synchronization label provider used in team synchronization views may use this class as a basis for refactoring-aware synchronization label providers.
SynchronizationLabelProvider
Constructor and Description |
---|
AbstractSynchronizationLabelProvider() |
Modifier and Type | Method and Description |
---|---|
protected String |
decorateText(String base,
Object element)
Decorate the text with the appropriate diff decorations.
|
protected IDiff |
getDiff(Object element)
Return the sync kind of the given element.
|
protected int |
getDirection(Object element)
Returns the direction of the difference of the specified refactoring
history object.
|
protected int |
getKind(Object element)
Returns the kind of difference between the three sides ancestor, left and
right of the specified refactoring history object.
|
getContext, getDescription, getExtensionSite, getImage, getModelRoot, getScope, getText, init, isDecorationEnabled, restoreState, saveState
addListener, decorateImage, dispose, getCompareImage, getDelegateImage, getDelegateLabelProvider, getDelegateText, getFont, getMarkerSeverity, hasDecendantConflicts, isBusy, isIncludeOverlays, isLabelProperty, isSyncInfoInTextEnabled, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, dispose, isLabelProperty, removeListener
getFont
public AbstractSynchronizationLabelProvider()
protected String decorateText(String base, Object element)
decorateText
in class AbstractSynchronizeLabelProvider
base
- the base text to be decorated.element
- the elementAbstractSynchronizeLabelProvider.getDiff(Object)
protected IDiff getDiff(Object element)
SyncInfo
class. A null
is returned by default.getDiff
in class AbstractSynchronizeLabelProvider
element
- the element being testedprotected int getDirection(Object element)
The result of this method is used to compose an icon which reflects the direction of the difference between the two or three versions of the refactoring history object.
element
- the refactoring history objectIThreeWayDiff.getDirection()
protected int getKind(Object element)
The result of this method is used to compose an icon which reflects the kind of difference between the two or three versions of the refactoring history object.
element
- the refactoring history objectIDiff.getKind()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.