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/ViewerColumn.java
}
	/**
	 * @param labelProvider
	 * @param registerListener
	 */
	void setLabelProvider(CellLabelProvider labelProvider,
			boolean registerListener) {
		if (listenerRegistered && this.labelProvider != null) {
			this.labelProvider.removeListener(listener);
			listenerRegistered = false;
		}
		this.labelProvider = labelProvider;
		if (registerListener) {
			this.labelProvider.addListener(listener);
			listenerRegistered = true;
		}
	}
	/**
	 * Return the editing support for the reciever.
	 * 
	 * @return {@link EditingSupport}
	 */
	EditingSupport getEditingSupport() {
		return editingSupport;
	}
	/**
	 * Set the editing support.
	 * 
	 * @param editingSupport
	 *            The {@link EditingSupport} to set.