Bug 61869 [JFace] JFace does not reflect the new color options for SWT Table and tree
The IColorProvider can be implemented by a label provider to provide background and foreground colors to a viewer. This should be changed to set the colors for individual cells, as is possible with the new SWT functionality already implemented in SWT. Changes: 1) IColorProvider - two supplementing methods Color getForeground(Object element, int index); Color getBackground(Object element, int index); 2) References to IColorProvider to the new methods doUpdateItem(Item, Object) - org.eclipse.jface.viewers.TableTreeViewer (3 matches) doUpdateItem(Item, Object) - org.eclipse.jface.viewers.TreeViewer (3 matches) doUpdateItem(Widget, Object, boolean) - org.eclipse.jface.viewers.TableViewer (3 matches)
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java
protected void setSelectionToWidget(List list, boolean reveal) {
	if (list == null) {
		table.deselectAll();
		return;
	}
	int size = list.size();
	TableItem[] items = new TableItem[size];
	TableItem firstItem = null;
	int count = 0;
	for (int i = 0; i < size; ++i) {
		Object o = list.get(i);
		Widget w = findItem(o);
		if (w instanceof TableItem) {
			TableItem item = (TableItem) w;
			items[count++] = item;
			if (firstItem == null)
				firstItem = item;
		}
	}
	if (count < size) {
		System.arraycopy(items, 0, items = new TableItem[count], 0, count);
	}
	table.setSelection(items);
	
	if (reveal && firstItem != null) {
		table.showItem(firstItem);
	}
}
}