Bug 123625 [cleanup] Generated Serial Version UIDs clean up
Add a fix to the cleanup refactoring which generates missing generated serial version IDs. The code of the existing serial version quickfix has been extracted and is now available in class SerialVersionComputationHelper. For details on how to use this class please refer to the existing quickfix.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/AbstractCleanUp.java
private static final String SETTINGS_FLAG_NAME= "flag"; 
	
	private int fFlags;
	
	protected AbstractCleanUp(IDialogSettings settings, int defaultFlag) {
		if (settings.get(SETTINGS_FLAG_NAME) == null)
			settings.put(SETTINGS_FLAG_NAME, defaultFlag);
		
		fFlags= settings.getInt(SETTINGS_FLAG_NAME);
	}
	protected AbstractCleanUp(int flag) {
		fFlags= flag;
	}
	public void saveSettings(IDialogSettings settings) {
		settings.put(SETTINGS_FLAG_NAME, fFlags);
	}
	protected void setFlag(int flag, boolean b) {
		if (!isFlag(flag) && b) {
			fFlags |= flag;
		} else if (isFlag(flag) && !b) {
			fFlags &= ~flag;
		}
	}
	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());