Project: Eclipse_Platform_UI
Bug 166635 [Viewers] DelegatingCellLabelProvider breaks OwnerDrawLabelProvider
Reported: 2006-12-04 09:35:49 | Status: verified fixed

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);

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CellLabelProvider.java bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/DelegatingCellLabelProvider.java bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerColumn.java