Bug 61509 [Preferences] Preferences.OK should be in a SafeRunnable.
1. I downloaded the latest integration build (200405060200) 2. Updated to org.eclipse.jdt.cheetah04 (0.0.4). 3. Upon restart, I imported a .java file with generic class and generic methods, to test generic usage in Eclipse. 4. I went into the preferences menu, and selected Java/Compiler. On the Compliance and Classfiles page I chose Compiler compliance level: 1.5. I pressed the "Apply" button and the "OK" button is immediatly highlighted. I press the "OK" button and the button lights up as if the command is recieved but does nothing (preference pane remains open). The only way to exit is to press the "Cancel" button or to close the window. Expected Results: Expected source to recompile file and remove source errors. Actual Results: Forced to close preference window, applying source change to 1.5 has no effect.
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
* The default implementation of this framework method sets the window's
	 * return code to <code>CANCEL</code> and closes the window using
	 * <code>close</code>. Subclasses may extend or reimplement.
	 * </p>
	 */
	protected void handleShellCloseEvent() {
		
		cancelPressed();
	}
	/**
	 * Notifies of the pressing of the Help button.
	 * <p>
	 * The default implementation of this framework method calls
	 * <code>performHelp</code> on the currently active page.
	 * </p>
	 */
	protected void helpPressed() {
		if (currentPage != null) {
			currentPage.performHelp();
		}
	}
	/**
	 * Returns whether the current page is valid.
	 * 
	 * @return <code>false</code> if the current page is not valid, or or
	 *         <code>true</code> if the current page is valid or there is no
	 *         current page
	 */
	protected boolean isCurrentPageValid() {
		if (currentPage == null)