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
return display.getSystemColor(SWT.COLOR_BLACK);
	}
	
	/**
	 * Dispose of all allocated colors. Called on workbench
	 * shutdown.
	 */
	public static void disposeColors(){
		Iterator colors = allocatedColors.iterator();
		while(colors.hasNext()){
			((Color) colors.next()).dispose();
		}
	}
	
	/**
	 * Set the foreground and background colors of the
	 * control to the specified values. If the values are
	 * null than ignore them.
	 * @param foreground Color
	 * @param background Color
	 */
	public static void setColors(Control control,Color foreground, Color background){
		if(foreground != null)
			control.setForeground(foreground);
		if(background != null)
			control.setBackground(background);
	}
	
}