ColumnViewerToolTipSupport
adds support for individual tooltips to TableViewer
and TreeViewer
(and other ColumnViewer
s), you enable this using:
ColumnViewerToolTipSupport.enableFor(viewer);
The support expects that the label provider(s) for the viewer are based on CellLabelProvider
(or one of its subclasses).
CellLabelProvider has getToolTipImage
, getToolTipText
, getToolTipBackgroundColor
, getToolTipForegroundColor
, getToolTipFont
and getToolTipShift
methods that you can override to control the tooltips.
Note: All this is JFace
code not pure SWT