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
if (fButtons == null)
			return;
		if (fButtons[0].isEnabled()) {
			enableButton(flags, ADD_OVERRIDE_ANNOATION, fButtons[1]);
			enableButton(flags, ADD_DEPRECATED_ANNOTATION, fButtons[2]);
			if (isFlag(ADD_DEPRECATED_ANNOTATION) || isFlag(ADD_OVERRIDE_ANNOATION)) {
				fButtons[0].setSelection(true);
				fButtons[1].setEnabled(true);
				fButtons[2].setEnabled(true);
			} else {
				fButtons[0].setSelection(false);
				fButtons[1].setEnabled(false);
				fButtons[2].setEnabled(false);
			}
		}
	}
	
	public void saveSettings(IDialogSettings settings) {
		super.saveSettings(getSection(settings, SECTION_NAME));
	}
	
	/**
	 * {@inheritDoc}
	 */
	public String[] getDescriptions() {
		List result= new ArrayList();
		if (isFlag(ADD_OVERRIDE_ANNOATION))
			result.add(MultiFixMessages.Java50MultiFix_AddMissingOverride_description);
		if (isFlag(ADD_DEPRECATED_ANNOTATION))
			result.add(MultiFixMessages.Java50MultiFix_AddMissingDeprecated_description);