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/UnusedCodeCleanUp.java
});
		
		
		
		
		return composite;
	}
	public void saveSettings(IDialogSettings settings) {
		settings.put(REMOVE_UNUSED_IMPORTS_SETTINGS_ID, fRemoveUnusedImports);
		settings.put(REMOVE_UNUSED_PRIVATE_METHODES_SETTINGS_ID, fRemoveUnusedPrivateMethods);
		settings.put(REMOVE_UNUSED_PRIVATE_CONSTRUCTORS_SETTINGS_ID, fRemoveUnusedPrivateConstructors);
		settings.put(REMOVE_UNUSED_PRIVATE_FIELDS_SETTINGS_ID, fRemoveUnusedPrivateFields);
		settings.put(REMOVE_UNUSED_PRIVATE_TYPE_SETTINGS_ID, fRemoveUnusedPrivateTypes);
		settings.put(REMOVE_UNUSED_LOCAL_VARIABLES_SETTINGS_ID, fRemoveUnusedLocalVariables);
	}
	
	/**
	 * 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());
	}
}