Bug 163274 [JFace] Provide customizable ToolTip at JFace level
More and more elements in JFace and UI request Customizable TooltipSupport. We should think about providing a common class providing a solid base for Tooltip implementations.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ToolTipSupport.java
Font font = labelProvider.getToolTipFont(element);
				
				if( font != null ) {
					label.setFont(font);
				}
				
				Point pt = viewer.getControl().toDisplay(p);
				Point shift = labelProvider.getToolTipShift(element);
				
				if( shift == null ) {
					pt.x += DEFAULT_SHIFT_X;
					pt.y += DEFAULT_SHIFT_Y;
				} else {
					pt.x += shift.x;
					pt.y += shift.y;
				}
				
				tip.pack();
				tip.setLocation(pt);
				tip.setVisible(true);
			}
		}
		
		/**
		 * Dispose the tooltip.
		 * @param tip
		 */
		private void disposeTooltip(Shell tip) {
			if (tip != null && !tip.isDisposed()) {
				tip.dispose();