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/ControlStatementsCleanUp.java
Button button= new Button(parent, SWT.CHECK);
		button.setText(MultiFixMessages.ControlStatementsCleanUp_useBlocks_checkBoxLabel);
		button.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false));
		fButtons[0]= button;
		final int[] flags= new int[] {ADD_BLOCK_TO_CONTROL_STATEMENTS, REMOVE_UNNECESSARY_BLOCKS};
		final int[] uiFlags= new int[] {1073741824, 536870912};
		final String[] labels= new String[] {MultiFixMessages.ControlStatementsCleanUp_always_checkBoxLabel, MultiFixMessages.ControlStatementsCleanUp_removeIfPossible_checkBoxLabel};
		Button[] buttons= createSubGroup(parent, button, SWT.RADIO, flags, labels, uiFlags, false);
		for (int i= 0; i < buttons.length; i++) {
			fButtons[i+1]= buttons[i];
		}
			
		Button box1= addCheckBox(parent, CONVERT_FOR_LOOP_TO_ENHANCED_FOR_LOOP, MultiFixMessages.ControlStatementsCleanUp_convertLoops_checkBoxLabel);
		if (project != null && !JavaModelUtil.is50OrHigher(project)) {
			box1.setEnabled(false);
		}
		fButtons[3]= box1;
		
		return parent;
	}
	/**
	 * {@inheritDoc}
	 */
	public void select(int flags) {
		if (fButtons == null)
			return;
		if (((flags & ADD_BLOCK_TO_CONTROL_STATEMENTS) != 0) && ((flags & REMOVE_UNNECESSARY_BLOCKS) != 0)) {
			setFlag(ADD_BLOCK_TO_CONTROL_STATEMENTS, fButtons[1].getSelection());
			setFlag(REMOVE_UNNECESSARY_BLOCKS, fButtons[2].getSelection());
			fButtons[0].setSelection(true);