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/AbstractCleanUp.java
protected boolean isFlag(int flag) {
		return (fFlags & flag) != 0;
	}
	protected Button addCheckBox(Composite parent, final int flag, String label) {
		return addCheckBox(parent, flag, label, new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				setFlag(flag, ((Button)e.getSource()).getSelection());
			}
		});
	}
	protected Button addCheckBox(Composite parent, final int flag, String label, SelectionAdapter adapter) {
		Button button= new Button(parent, SWT.CHECK);
		button.setText(label);
		button.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false));
		button.setSelection(isFlag(flag));
		button.addSelectionListener(adapter);
		return button;
	}
	
	protected String removeMemonic(String s) {
		StringBuffer buf= new StringBuffer(s);
		for (int i=buf.length()-1;i>=0;i--) {
			if (buf.charAt(i) == '&')
				buf.deleteCharAt(i);
		}
		return buf.toString();
	}
	
}