Class NavigatorDecoratingLabelProviderEx

  • All Implemented Interfaces:
    java.util.EventListener, org.eclipse.jface.util.IPropertyChangeListener, org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.ILabelProvider, org.eclipse.jface.viewers.ITableLabelProvider, org.eclipse.jface.viewers.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

        org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider
    • Field Summary

      • Fields inherited from class org.eclipse.jface.viewers.StyledCellLabelProvider

        COLORS_ON_SELECTION, NO_FOCUS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      intgetToolTipDisplayDelayTime​(java.lang.Object element)
      The time in milliseconds until the tool tip is displayed.
      org.eclipse.swt.graphics.PointgetToolTipShift​(java.lang.Object element)
      Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer.
      java.lang.StringgetToolTipText​(java.lang.Object element)
      Adds support for tooltip text.
      intgetToolTipTimeDisplayed​(java.lang.Object element)
      The time in milliseconds the tool tip is shown for.
      booleanuseNativeToolTip​(java.lang.Object element) 
      • Methods inherited from class org.eclipse.ui.internal.navigator.NavigatorDecoratingLabelProvider

        dispose, getColumnImage, getColumnText, getText, initialize, propertyChange
      • Methods inherited from class org.eclipse.jface.viewers.DecoratingStyledCellLabelProvider

        addListener, getBackground, getDecorationContext, getDecorationStyle, getFont, getForeground, getImage, getLabelDecorator, getStyledText, isLabelProperty, removeListener, setDecorationContext, setLabelDecorator, update
      • Methods inherited from class org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider

        getStyledStringProvider
      • Methods inherited from class org.eclipse.jface.viewers.StyledCellLabelProvider

        erase, getColumn, getViewer, isOwnerDrawEnabled, measure, paint, prepareStyleRange, setOwnerDrawEnabled, styleDecoratedString
      • Methods inherited from class org.eclipse.jface.viewers.OwnerDrawLabelProvider

        dispose, initialize, setOwnerDrawEnabled, setUpOwnerDraw
      • Methods inherited from class org.eclipse.jface.viewers.CellLabelProvider

        getToolTipBackgroundColor, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipStyle
      • Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider

        fireLabelProviderChanged
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider

        addListener, isLabelProperty, removeListener
      • Methods inherited from interface org.eclipse.jface.viewers.ILabelProvider

        getImage
    • Constructor Detail

      • NavigatorDecoratingLabelProviderEx

        public NavigatorDecoratingLabelProviderEx​(org.eclipse.jface.viewers.ILabelProvider commonLabelProvider)
        Constructor.
    • Method Detail

      • useNativeToolTip

        public boolean useNativeToolTip​(java.lang.Object element)
        Overrides:
        useNativeToolTip in class org.eclipse.ui.internal.navigator.NavigatorDecoratingLabelProvider
        See Also:
        CellLabelProvider.useNativeToolTip(java.lang.Object)
      • getToolTipText

        public java.lang.String getToolTipText​(java.lang.Object element)
        Adds support for tooltip text.
        Specified by:
        getToolTipText in interface org.eclipse.jface.viewers.IToolTipProvider
        Overrides:
        getToolTipText in class org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider
      • getToolTipTimeDisplayed

        public int getToolTipTimeDisplayed​(java.lang.Object element)
        The time in milliseconds the tool tip is shown for.
        Overrides:
        getToolTipTimeDisplayed in class org.eclipse.jface.viewers.CellLabelProvider
      • getToolTipDisplayDelayTime

        public int getToolTipDisplayDelayTime​(java.lang.Object element)
        The time in milliseconds until the tool tip is displayed.
        Overrides:
        getToolTipDisplayDelayTime in class org.eclipse.jface.viewers.CellLabelProvider
      • getToolTipShift

        public org.eclipse.swt.graphics.Point getToolTipShift​(java.lang.Object element)
        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:
        getToolTipShift in class org.eclipse.jface.viewers.CellLabelProvider
        Returns:
        Point to shift of the tool tip or null if the default shift should be used.