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
}
	
	/**
	 * Method getProject.
	 */
	private IJavaProject getProject() {
		return (IJavaProject) getElement().getAdapter(IJavaElement.class);		
	}
	
	private void updateEnableState() {
		if (useProjectSettings()) {
			if (fBlockEnableState != null) {
				fBlockEnableState.restore();
				fBlockEnableState= null;
			}
		} else {
			if (fBlockEnableState == null) {
				fBlockEnableState= ControlEnableState.disable(fConfigurationBlockControl);
			}
		}	
	}
	
	/*
	 * @see org.eclipse.jface.preference.IPreferencePage#performDefaults()
	 */
	protected void performDefaults() {
		if (useProjectSettings()) {
			fConfigurationBlock.performDefaults();
		}
		super.performDefaults();