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
* @param selection
	 *            the <code>ISelection</code> to examine.
	 * @return the first element, or null if empty.
	 */
	protected IPreferenceNode getSingleSelection(ISelection selection) {
		if (!selection.isEmpty())
			return (IPreferenceNode) ((IStructuredSelection) selection)
					.getFirstElement();
		return null;
	}
	/**
	 * @return the <code>TreeViewer</code> for this dialog.
	 * @since 3.0
	 */
	protected TreeViewer getTreeViewer() {
		return treeViewer;
	}
	/**
	 * Save the values specified in the pages.
	 * <p>
	 * The default implementation of this framework method saves all pages of
	 * type <code>PreferencePage</code> (if their store needs saving and is a
	 * <code>PreferenceStore</code>).
	 * </p>
	 * <p>
	 * Subclasses may override.
	 * </p>
	 */
	protected void handleSave() {
		Iterator nodes = preferenceManager.getElements(