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
settings.put(REMOVE_UNUSED_PRIVATE_FIELDS_SETTINGS_ID, false);
		if (settings.get(REMOVE_UNUSED_PRIVATE_TYPE_SETTINGS_ID) == null) {
			settings.put(REMOVE_UNUSED_PRIVATE_TYPE_SETTINGS_ID, false);
		}
			settings.put(REMOVE_UNUSED_LOCAL_VARIABLES_SETTINGS_ID, false);
		init(	settings.getBoolean(REMOVE_UNUSED_IMPORTS_SETTINGS_ID), 
				settings.getBoolean(REMOVE_UNUSED_PRIVATE_METHODES_SETTINGS_ID),
				settings.getBoolean(REMOVE_UNUSED_PRIVATE_CONSTRUCTORS_SETTINGS_ID),
				settings.getBoolean(REMOVE_UNUSED_PRIVATE_FIELDS_SETTINGS_ID),
				settings.getBoolean(REMOVE_UNUSED_PRIVATE_TYPE_SETTINGS_ID),
				settings.getBoolean(REMOVE_UNUSED_LOCAL_VARIABLES_SETTINGS_ID)
				);
	}
	private void init(boolean removeUnusedImports, boolean removeUnusedPrivateMethods, 
			boolean removeUnusedPrivateConstructors, boolean removeUnusedPrivateFields,
			boolean removeUnusedPrivateTypes, boolean removeUnusedLocalVariables) {
		
		fRemoveUnusedImports= removeUnusedImports;
		fRemoveUnusedPrivateMethods= removeUnusedPrivateMethods;
		fRemoveUnusedPrivateConstructors= removeUnusedPrivateConstructors;
		fRemoveUnusedPrivateFields= removeUnusedPrivateFields;
		fRemoveUnusedPrivateTypes= removeUnusedPrivateTypes;
		fRemoveUnusedLocalVariables= removeUnusedLocalVariables;
	}
	public IFix createFix(CompilationUnit compilationUnit) throws CoreException {
		
		List removeImports= new ArrayList();
		List removeNames= new ArrayList();
		IProblem[] problems= compilationUnit.getProblems();
		for (int i= 0; i < problems.length; i++) {