Bug 53424 [RCP] Workbench should not dispose the display
build I20040225 Currently the Workbench disposes the display passed in to PlatformUI.createAndRunWorkbench when the Workbench is closed. This should be left up to the caller, since it created the display.
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceColors.java
}
	}
	
	/**
	 * Get the color setting for the name.
	 */
	public static boolean getUseDefaultTheme() {
		IPreferenceStore store = JFacePreferences.getPreferenceStore();
		if (store == null){
			return true;
		} else {
			return store.getBoolean(JFacePreferences.USE_DEFAULT_THEME);
		}
	}
	
	/**
	 * 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);