Bug 175098 [Viewers] Should be possible to override TooltipSupport
Eclipse 3.3 M5 I would like to override the control that is being used by the TooltipSupport in my ColumnViewer because I have some additional requirements (wrapping for instance and different font-style-ranges). Ben
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ToolTipSupport.java
rv = true;
			}
		}
		return rv;
	}
	private void updateData() {
		CellLabelProvider labelProvider = (CellLabelProvider) getData(LABEL_PROVIDER_KEY);
		Object element = getData(ELEMENT_KEY);
		setText(labelProvider.getToolTipText(element));
		setStyle(labelProvider.getToolTipStyle(element));
		setForegroundColor(labelProvider.getToolTipForegroundColor(element));
		setBackgroundColor(labelProvider.getToolTipBackgroundColor(element));
		setFont(labelProvider.getToolTipFont(element));
		setImage(labelProvider.getToolTipImage(element));
	}
	protected Composite createToolTipContentArea(Event event, Composite parent) {
		updateData();
		return super.createToolTipContentArea(event, parent);
	}
	protected void afterHideToolTip(Event event) {
		if (event != null && event.widget != viewer.getControl()) {
			if (event.type == SWT.MouseDown) {
				viewer.setSelection(new StructuredSelection());
			} else {
				viewer.getControl().setFocus();
			}
		}
	}
}