Bug 126874 [Viewers] Apidoc for setting ITableColorProvider missing
I wanted to add some color to my table. First i found out about ITableColorProvider, but didnt know where to register it. After digging into the eclipse source code, i found out that org.eclipse.jface.viewers.TableViewer has a method named setLabelProvider with one argument IBaseLabelProvider. In the code, but not the javadoc, it says that you can also register ITableFontProvider and ITableColorProvider with it, assuming the instance implements these types, too. Please consider documentating this feature in the corresponding javadoc, as its part of the methods functionality and contract.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
/**
	 * TreeColorAndFontCollector is an helper class for color and font support
	 * for trees that support the ITableFontProvider and the
	 * ITableColorProvider.
	 * 
	 * @see ITableColorProvider
	 * @see ITableFontProvider
	 */
	private class TreeColorAndFontCollector {
		ITableFontProvider fontProvider = null;
		ITableColorProvider colorProvider = null;
		/**
		 * Create an instance of the receiver. Set the color and font providers
		 * if provider can be cast to the correct type.
		 * 
		 * @param provider
		 *            IBaseLabelProvider
		 */
		public TreeColorAndFontCollector(IBaseLabelProvider provider) {
			if (provider instanceof ITableFontProvider) {
				fontProvider = (ITableFontProvider) provider;
			}
			if (provider instanceof ITableColorProvider) {