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/resource/JFaceColors.java
if (color != null && !color.isDisposed()) { return color; }
        IPreferenceStore store = JFacePreferences.getPreferenceStore();
        if (store == null) {
            color = getDefaultColor(display, preferenceName);
            colorTable.put(preferenceName, color);
            return color;
        } else {
            color = new Color(display, PreferenceConverter.getColor(store,
                    preferenceName));
            allocatedColors.add(color);
            colorTable.put(preferenceName, color);
            return color;
        }
    }
		
	/**
	 * Return the default color for the preferenceName. If there is
	 * no setting return the system black.
	 */
	private static Color getDefaultColor(Display display,String preferenceName){
		
		if(preferenceName.equals(JFacePreferences.ERROR_COLOR))
			return display.getSystemColor(SWT.COLOR_RED);
		if(preferenceName.equals(JFacePreferences.HYPERLINK_COLOR)){
			Color color = new Color(display,0,0,153);
			allocatedColors.add(color);
			return color;
		}
		if(preferenceName.equals(JFacePreferences.ACTIVE_HYPERLINK_COLOR))
			return display.getSystemColor(SWT.COLOR_BLUE);