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
private static final String REMOVE_UNUSED_PRIVATE_TYPE_SETTINGS_ID= "RemoveUnusedPrivateType"; 
	private static final String REMOVE_UNUSED_LOCAL_VARIABLES_SETTINGS_ID= "RemoveUnusedLocals"; 
	
	private boolean fRemoveUnusedImports;
	private boolean fRemoveUnusedPrivateMethods;
	private boolean fRemoveUnusedPrivateConstructors;
	private boolean fRemoveUnusedPrivateFields;
	private boolean fRemoveUnusedPrivateTypes;
	private boolean fRemoveUnusedLocalVariables;
	public UnusedCodeCleanUp(boolean removeUnusedImports, boolean removeUnusedPrivateMethods, 
			boolean removeUnusedPrivateConstructors, boolean removeUnusedPrivateFields,
			boolean removeUnusedPrivateTypes, boolean removeUnusedLocalVariables) {
		
		init(	removeUnusedImports, 
				removeUnusedPrivateMethods,
				removeUnusedPrivateConstructors,
				removeUnusedPrivateFields,
				removeUnusedPrivateTypes,
				removeUnusedLocalVariables);
	}
	public UnusedCodeCleanUp(IDialogSettings settings) {
		if (settings.get(REMOVE_UNUSED_IMPORTS_SETTINGS_ID) == null) {
			settings.put(REMOVE_UNUSED_IMPORTS_SETTINGS_ID, true);
		}
		if (settings.get(REMOVE_UNUSED_PRIVATE_METHODES_SETTINGS_ID) == null) {
			settings.put(REMOVE_UNUSED_PRIVATE_METHODES_SETTINGS_ID, false);
		}
		if (settings.get(REMOVE_UNUSED_PRIVATE_CONSTRUCTORS_SETTINGS_ID) == null) {
			settings.put(REMOVE_UNUSED_PRIVATE_CONSTRUCTORS_SETTINGS_ID, false);
		}