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
IDialogFieldListener listener= new IDialogFieldListener() {
			public void dialogFieldChanged(DialogField field) {
				doDialogFieldChanged(field);
			}
		};
		
		fUseWorkspaceSettings= new SelectionButtonDialogField(SWT.RADIO);
		fUseWorkspaceSettings.setDialogFieldListener(listener);
		fUseWorkspaceSettings.setLabelText(PreferencesMessages.getString("TodoTaskPropertyPage.useworkspacesettings.label"));
		fChangeWorkspaceSettings= new SelectionButtonDialogField(SWT.PUSH);
		fChangeWorkspaceSettings.setLabelText(PreferencesMessages.getString("TodoTaskPropertyPage.useworkspacesettings.change"));
		fChangeWorkspaceSettings.setDialogFieldListener(listener);
	
		fUseWorkspaceSettings.attachDialogField(fChangeWorkspaceSettings);
		fUseProjectSettings= new SelectionButtonDialogField(SWT.RADIO);
		fUseProjectSettings.setDialogFieldListener(listener);
		fUseProjectSettings.setLabelText(PreferencesMessages.getString("TodoTaskPropertyPage.useprojectsettings.label"));
	}
	/*
	 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
	 */
	public void createControl(Composite parent) {
		super.createControl(parent);
		WorkbenchHelp.setHelp(getControl(), IJavaHelpContextIds.TODOTASK_PROPERTY_PAGE);
	}
	/*
	 * @see org.eclipse.jface.preference.IPreferencePage#createContents(Composite)
	 */
	protected Control createContents(Composite parent) {