Package com.iizigo.editor
Class NavigatorDecoratingLabelProviderEx
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.BaseLabelProvider
org.eclipse.jface.viewers.CellLabelProvider
org.eclipse.jface.viewers.OwnerDrawLabelProvider
org.eclipse.jface.viewers.StyledCellLabelProvider
org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider
org.eclipse.jface.viewers.DecoratingStyledCellLabelProvider
org.eclipse.ui.internal.navigator.NavigatorDecoratingLabelProvider
com.iizigo.editor.NavigatorDecoratingLabelProviderEx
- All Implemented Interfaces:
EventListener,IPropertyChangeListener,IBaseLabelProvider,ILabelProvider,ITableLabelProvider,IToolTipProvider
public class NavigatorDecoratingLabelProviderEx extends org.eclipse.ui.internal.navigator.NavigatorDecoratingLabelProvider
Navigator label provider with tool-tip support.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider
DelegatingStyledCellLabelProvider.IStyledLabelProviderField Summary
Fields inherited from class org.eclipse.jface.viewers.StyledCellLabelProvider
COLORS_ON_SELECTION, NO_FOCUSConstructor Summary
ConstructorsConstructorDescriptionNavigatorDecoratingLabelProviderEx(ILabelProvider commonLabelProvider) Constructor.Method Summary
Modifier and TypeMethodDescriptionintgetToolTipDisplayDelayTime(Object element) The time in milliseconds until the tool tip is displayed.getToolTipShift(Object element) Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer.getToolTipText(Object element) Adds support for tooltip text.intgetToolTipTimeDisplayed(Object element) The time in milliseconds the tool tip is shown for.booleanuseNativeToolTip(Object element) Methods inherited from class org.eclipse.ui.internal.navigator.NavigatorDecoratingLabelProvider
dispose, getColumnImage, getColumnText, getText, initialize, propertyChangeMethods inherited from class org.eclipse.jface.viewers.DecoratingStyledCellLabelProvider
addListener, getBackground, getDecorationContext, getDecorationStyle, getFont, getForeground, getImage, getLabelDecorator, getStyledText, isLabelProperty, removeListener, setDecorationContext, setLabelDecorator, updateMethods inherited from class org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider
getStyledStringProviderMethods inherited from class org.eclipse.jface.viewers.StyledCellLabelProvider
erase, getColumn, getViewer, isOwnerDrawEnabled, measure, paint, prepareStyleRange, setOwnerDrawEnabled, styleDecoratedStringMethods inherited from class org.eclipse.jface.viewers.OwnerDrawLabelProvider
dispose, initialize, setOwnerDrawEnabled, setUpOwnerDrawMethods inherited from class org.eclipse.jface.viewers.CellLabelProvider
getToolTipBackgroundColor, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipStyleMethods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
fireLabelProviderChangedMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
addListener, isLabelProperty, removeListenerMethods inherited from interface org.eclipse.jface.viewers.ILabelProvider
getImage
Constructor Details
NavigatorDecoratingLabelProviderEx
Constructor.
Method Details
useNativeToolTip
- Overrides:
useNativeToolTipin classorg.eclipse.ui.internal.navigator.NavigatorDecoratingLabelProvider- See Also:
getToolTipText
Adds support for tooltip text.- Specified by:
getToolTipTextin interfaceIToolTipProvider- Overrides:
getToolTipTextin classDelegatingStyledCellLabelProvider
getToolTipTimeDisplayed
The time in milliseconds the tool tip is shown for.- Overrides:
getToolTipTimeDisplayedin classCellLabelProvider
getToolTipDisplayDelayTime
The time in milliseconds until the tool tip is displayed.- Overrides:
getToolTipDisplayDelayTimein classCellLabelProvider
getToolTipShift
Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer. The default shift is 10px right and 0px below your mouse cursor. Be aware of the fact that you should at least position the tool tip 1px right to your mouse cursor else click events may not get propagated properly.- Overrides:
getToolTipShiftin classCellLabelProvider- Returns:
Pointto shift of the tool tip ornullif the default shift should be used.