Bug 48773 [Preferences] Workbench should use ColorRegistry for color management.
Wherever possible, the workbench should use the new Color API for its colors.
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceConverter.java
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Shell;
/**
 * A utility class for dealing with preferences whose values are
 * common SWT objects (color, points, rectangles, and font data).
 * The static methods on this class handle the conversion between
 * the SWT objects and their string representations.
 * <p>
 * Usage:
 * <pre>
 * IPreferenceStore store = ...;
 * PreferenceConverter.setValue(store, "bg", new RGB(127,127,127));
 * ...
 * RBG bgColor = PreferenceConverter.getValue(store, "bg");
 * </pre>
 * </p>
 * <p>
 * This class contains static methods and fields only and cannot 
 * be instantiated.
 * </p>
 * @issue touching this class has the side effect of creating a display (static initializer).
 */
public class PreferenceConverter {
	/**
	 * The default-default value for point preferences
	 * (the origin, <code>(0,0)</code>).
	 */