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/DecoratingLabelProvider.java
Image image = decorator.decorateImage(settings.getImage(),
						element);
				if (image != null)
					settings.setImage(image);
			}
			if (decorator instanceof IColorDecorator) {
				IColorDecorator colorDecorator = (IColorDecorator) decorator;
				Color background = colorDecorator.decorateBackground(element);
				if (background != null)
					settings.setBackground(background);
				Color foreground = colorDecorator.decorateForeground(element);
				if (foreground != null)
					settings.setForeground(foreground);
			}
			if (decorator instanceof IFontDecorator) {
				Font font = ((IFontDecorator) decorator).decorateFont(element);
				if (font != null)
					settings.setFont(font);
			}
		}
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.jface.viewers.ViewerLabelProvider#updateLabel(org.eclipse.jface.viewers.ViewerLabel, org.eclipse.jface.viewers.ViewerCell)
	 */
	public void updateLabel(ViewerLabel label, ViewerCell cell) {
		updateLabel(label, cell.getElement());
	}
}