Bug 118031 [clean up] Add @Override and @Deprecated only for 5.0 projects
20051125 I selected a compilation unit to process in a 1.4 project. Clean up has 'add @Override and @Deprecated' on by default. Would be better if it is unchecked or even disabled
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/Java50CleanUp.java
Composite composite= new Composite(parent, SWT.NONE);
		composite.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true));
		composite.setLayout(new GridLayout(1, true));
		
		addCheckBox(composite, ADD_OVERRIDE_ANNOATION, MultiFixMessages.Java50MultiFix_AddMissingOverride_description);
		addCheckBox(composite, ADD_DEPRECATED_ANNOTATION, MultiFixMessages.Java50MultiFix_AddMissingDeprecated_description);
		addCheckBox(composite, CONVERT_FOR_LOOP_TO_ENHANCED_FOR_LOOP, MultiFixMessages.Java50CleanUp_ConvertToEnhancedForLoop_description);
		
		return composite;
	}
	
	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(removeMemonic(MultiFixMessages.Java50MultiFix_AddMissingOverride_description));
		if (isFlag(ADD_DEPRECATED_ANNOTATION))
			result.add(removeMemonic(MultiFixMessages.Java50MultiFix_AddMissingDeprecated_description));
		if (isFlag(CONVERT_FOR_LOOP_TO_ENHANCED_FOR_LOOP))
			result.add(removeMemonic(MultiFixMessages.Java50CleanUp_ConvertToEnhancedForLoop_description));
		return (String[])result.toArray(new String[result.size()]);
	}
}