Bug 157174 [Viewers] Refactor new Viewer API
We are yet not completely happy with the API and refactor it.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerLabelProvider.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.viewers.IColorProvider#getBackground(java.lang.Object)
	 */
	public Color getBackground(Object element) {
		if (colorProvider == null) {
			return null;
		}
		return colorProvider.getBackground(element);
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.viewers.IColorProvider#getForeground(java.lang.Object)
	 */
	public Color getForeground(Object element) {
		if (colorProvider == null) {
			return null;
		}
		return colorProvider.getForeground(element);
	}
	/**
	 * Get the IColorProvider for the receiver.
	 * 
	 * @return {@link IColorProvider} or <code>null</code>
	 */
	public IColorProvider getColorProvider() {
		return colorProvider;
	}