Bug 30350 Can not "Restore Defaults" setting for 'Java Task Tags'.
Reporter: Amanda Lee Language: Korean /Simplfied Chinese /Traditional Chinese Build driver: eclipse-SDK-I20030122-win32, linux_gtk, linux_motif, Severity: OS: RedHat8_gtk, RedHat8_motif, WinXP JDK Ver.: IBM JDK1.3.1 + SR3 Test case #: 11.6 Summary: DBCS: Can not "Restore Defaults" setting for 'Java Task Tags'. Description: Steps to recreate problem: 1-Open a eclipse. 2-Select a java project, and open its "Properties". 3-Select "Java Task Tags", and click "Use project settings", made some change. 4-Click "Restore Defaults" button. << Error >> The Defaults setting did not been restored. <<Expected Result>> "Restore Defaults" setting works fine for 'Java Task Tags'.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TodoTaskPropertyPage.java
}
	/*
	 * @see org.eclipse.jface.preference.IPreferencePage#performOk()
	 */
	public boolean performOk() {
		return fConfigurationBlock.performOk(useProjectSettings());
	}
	
	private void updateStatus(IStatus status) {
		setValid(!status.matches(IStatus.ERROR));
		StatusUtil.applyToStatusLine(this, status);
	}
	
	private boolean showPreferencePage(String id, IPreferencePage page) {
		final IPreferenceNode targetNode = new PreferenceNode(id, page);
		
		PreferenceManager manager = new PreferenceManager();
		manager.addToRoot(targetNode);
		final PreferenceDialog dialog = new PreferenceDialog(getControl().getShell(), manager);
		final boolean [] result = new boolean[] { false };
		BusyIndicator.showWhile(getControl().getDisplay(), new Runnable() {
			public void run() {
				dialog.create();
				dialog.setMessage(targetNode.getLabelText());
				result[0]= (dialog.open() == PreferenceDialog.OK);
			}
		});
		return result[0];
	}	
}