Bug 133214 [Field Assist] - required field color hard to see
bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java
* 
 * @since 3.2
 */
public class FieldAssistColors {
	/**
	 * Compute the RGB of the color that should be used for the background of a
	 * control to indicate that the control has an error. Because the color
	 * suitable for indicating an error depends on the colors set into the
	 * control, this color is always computed dynamically and provided as an RGB
	 * value. Clients who use this RGB to create a Color resource are
	 * responsible for managing the life cycle of the color.
	 * <p>
	 * This color is computed dynamically each time that it is queried. Clients
	 * should typically call this method once, create a color from the RGB
	 * provided, and dispose of the color when finished using it.
	 * 
	 * @param control
	 *            the control for which the background color should be computed.
	 * @return the RGB value indicating a background color appropriate for
	 *         indicating an error in the control.
	 */
	public static RGB computeErrorFieldBackgroundRGB(Control control) {
		/*
		 * There is probably a much more elegant way to do this. Suggestions
		 * welcome. The current computation uses the JFace error text color to
		 * affect the color of the control background. The error color is
		 * examined and the computation takes into account both the magnitude of
		 * each color component in the error color and significant variation of
		 * any particular R,G,B value from the average magnitude. The result is
		 * that a color skewed heavily toward a R,G,B affects the control