Bug 117718 [clean up][infrastructure] Use flags for clean ups instead of boolean parameter list
Version: 3.2.0 Build id: I20051122-1300 Boolean parameter lists in constructors for ICleanUps do not scale.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/Java50CleanUp.java
addDepricated.setText(MultiFixMessages.Java50MultiFix_AddMissingDeprecated_description);
		addDepricated.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false));
		addDepricated.setSelection(fAddDepricatedAnnotation);
		addDepricated.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				fAddDepricatedAnnotation= ((Button)e.getSource()).getSelection();
			}
		});
		
		return composite;
	}
	public void saveSettings(IDialogSettings settings) {
		settings.put(ADD_OVERRIDE_ANNOTATION_SETTINGS_ID, fAddOverrideAnnotation);
		settings.put(ADD_DEPRICATED_ANNOTATION_SETTINGS_ID, fAddDepricatedAnnotation);
	}
	
	/**
	 * Helper method to convert an <code>IProblem</code> into an
	 * <code>IProblemLocation</code>.
	 * 
	 * @param problem The <code>IProblem</code> not null
	 * @return The <code>IProblemLocation</code> not null
	 */
	private IProblemLocation getProblemLocation(IProblem problem) {
		int offset= problem.getSourceStart();
		int length= problem.getSourceEnd() - offset + 1;
		return new ProblemLocation(offset, length, problem.getID(), problem.getArguments(), problem.isError());
	}
}