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
ImportDeclaration[] imports= (ImportDeclaration[])removeImports.toArray(new ImportDeclaration[removeImports.size()]);
		SimpleName[] names= (SimpleName[])removeNames.toArray(new SimpleName[removeNames.size()]);
		return new UnusedCodeFix("", cu, imports, names, (names.length == 0)?null:compilationUnit); 
	}
	public Map getRequiredOptions() {
		Map options= new Hashtable();
		if (fRemoveUnusedImports) {
			options.put(JavaCore.COMPILER_PB_UNUSED_IMPORT, JavaCore.WARNING);
		}
		if (fRemoveUnusedPrivateMethods || fRemoveUnusedPrivateConstructors || fRemoveUnusedPrivateFields || fRemoveUnusedPrivateTypes) {
			options.put(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER, JavaCore.WARNING);
		}
		if (fRemoveUnusedLocalVariables) {
			options.put(JavaCore.COMPILER_PB_UNUSED_LOCAL, JavaCore.WARNING);
		}
		return options;
	}
	public Control createConfigurationControl(Composite parent) {
		Composite composite= new Composite(parent, SWT.NONE);
		composite.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true));
		composite.setLayout(new GridLayout(1, true));
		
		Button removeUnusedImport= new Button(composite, SWT.CHECK);
		removeUnusedImport.setText(MultiFixMessages.UnusedCodeMultiFix_RemoveUnusedImport_description);
		removeUnusedImport.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false));
		removeUnusedImport.setSelection(fRemoveUnusedImports);
		removeUnusedImport.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				fRemoveUnusedImports= ((Button)e.getSource()).getSelection();
			}