Bug 126917 [clean up][ui] - Annotations should not be checked and disabled < 5.0
I20060207-1305 Invoke Clean Up in a 5.0 project and check 'Add missing Annotations'. Then, invoke it on a 1.4 project. -> The checkboc is checked and disabled. This leaves the impressions that Annotations are added, but I cannot disable this cleanup. The disabled checkbox should not be checked. Alternatively, the whole Annotations section could be removed on 1.4-only targets.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/Java50CleanUp.java
IProblem[] problems= compilationUnit.getProblems();
		if (isFlag(ADD_OVERRIDE_ANNOATION)) {
			result+= getNumberOfProblems(problems, IProblem.MissingOverrideAnnotation);
		}
		if (isFlag(ADD_DEPRECATED_ANNOTATION)) {
			for (int i=0;i<problems.length;i++) {
				int id= problems[i].getID();
				if (id == IProblem.FieldMissingDeprecatedAnnotation || id == IProblem.MethodMissingDeprecatedAnnotation || id == IProblem.TypeMissingDeprecatedAnnotation)
					result++;
			}
		}
		if (isFlag(ADD_TYPE_PARAMETERS_TO_RAW_TYPE_REFERENCE)) {
			for (int i=0;i<problems.length;i++) {
				int id= problems[i].getID();
				if (id == IProblem.UnsafeTypeConversion || id == IProblem.RawTypeReference || id == IProblem.UnsafeRawMethodInvocation)
					result++;
			}
		}
		return result;
	}
	
	/**
	 * {@inheritDoc}
	 */
	public int getDefaultFlag() {
		return DEFAULT_FLAG;
	}
	
}