Bug 163345 [Field Assist] - API - Deprecate DecoratedField and related classes
If ControlDecoration is adopted in replacement of DecoratedField by all existing SDK clients, then we should deprecate DecoratedField.
bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.eclipse.jface.resource.JFaceColors;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
/**
 * FieldAssistColors defines protocol for retrieving colors that can be used to
 * provide visual cues with fields. For consistency with JFace dialogs and
 * wizards, it is recommended that FieldAssistColors is used when colors are
 * used to annotate fields.
 * <p>
 * Color resources that are returned using methods in this class are maintained
 * in the JFace color registries, or by SWT. Users of any color resources
 * provided by this class are not responsible for the lifecycle of the color.
 * Colors provided by this class should never be disposed by clients. In some
 * cases, clients are provided information, such as RGB values, in order to
 * create their own color resources. In these cases, the client should manage
 * the lifecycle of any created resource.
 * 
 * @since 3.2
 */
public class FieldAssistColors {
	private static boolean DEBUG = false;
	/*
	 * Keys are background colors, values are the color with the alpha value
	 * applied