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
fConfigurationBlockControl.setLayoutData(data);
		
		boolean useProjectSettings= fConfigurationBlock.hasProjectSpecificOptions();
		
		fUseProjectSettings.setSelection(useProjectSettings);
		fUseWorkspaceSettings.setSelection(!useProjectSettings);
		
		updateEnableState();
		return composite;
	}
	
	private boolean useProjectSettings() {
		return fUseProjectSettings.isSelected();
	}
	
	private void doDialogFieldChanged(DialogField field) {
		if (field == fChangeWorkspaceSettings) {
			String id= "org.eclipse.jdt.ui.propertyPages.TodoTaskPropertyPage";
			TodoTaskPreferencePage page= new TodoTaskPreferencePage();
			showPreferencePage(id, page);
		} else {
			updateEnableState();
			doStatusChanged();
		}
	}	
	/**
	 * Method statusChanged.
	 */
	private void doStatusChanged() {
		updateStatus(useProjectSettings() ? fBlockStatus : new StatusInfo());