Bug 166635 [Viewers] DelegatingCellLabelProvider breaks OwnerDrawLabelProvider
OwnerDrawLabelProviders are now being wrapped in DelegatingCellLabelProviders so the event handling code fails as we can no longer access the label provider CellLabelProvider provider = viewer .getViewerColumn(event.index).getLabelProvider(); Object element = event.item.getData(); if (provider instanceof OwnerDrawLabelProvider) ((OwnerDrawLabelProvider) provider).measure(event, element);
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CellLabelProvider.java
/**
	 * The time in milliseconds until the tool tip is displaued.
	 * 
	 * @param object
	 *            the {@link Object} for which the tool tip is shown
	 * @return int
	 */
	public int getToolTipDisplayDelayTime(Object object) {
		return 0;
	}
	/**
	 * The {@link SWT} style used to create the {@link CLabel} (see there for supported styles). 
	 * By default {@link SWT#SHADOW_NONE} is used.
	 * 
	 * @param object
	 *            the element for which the tool tip is shown
	 * @return int
	 * @see CLabel
	 */
	public int getToolTipStyle(Object object) {
		return SWT.SHADOW_NONE;
	}
	/**
	 * Update the label for cell.
	 * 
	 * @param cell {@link ViewerCell}
	 */
	public abstract void update(ViewerCell cell);
}