/* Apply ContentProvider */
fResultViewer.setContentProvider(getContentProvider());
/* Create LabelProvider (Custom Owner Drawn enabled!) */
final NewsTableLabelProvider newsTableLabelProvider = new ScoredNewsLabelProvider(fResultViewer);
if (USE_CUSTOM_OWNER_DRAWN) {
fResultViewer.getControl().addListener(SWT.EraseItem, new Listener() {
public void handleEvent(Event event) {
Object element = event.item.getData();
newsTableLabelProvider.erase(event, element);
}
});
}
//OwnerDrawLabelProvider.setUpOwnerDraw(fViewer); Not being used due to performance reasons