Bug 123775 [cleanup] Provide Select All/Deselect All/Select Default buttons on page to select fixes
I20060105-0800 For better usability, there should be buttons to control the selection behavior, eg. to execute one fix only (removing all unnecessary NLS tags)
org.eclipse.jdt.ui.tests/performance/org/eclipse/jdt/ui/tests/performance/views/CleanUpPerfTest.java
public static Test setUpTest(Test someTest) {
		return new MyTestSetup(someTest);
	}
	
	private void addAllCUs(CleanUpRefactoring cleanUp, IJavaElement[] children) throws JavaModelException {
		for (int i= 0; i < children.length; i++) {
			IJavaElement element= children[i];
			if (element instanceof ICompilationUnit) {
				cleanUp.addCompilationUnit((ICompilationUnit)element);
			} else if (element instanceof IPackageFragmentRoot) {
				IPackageFragmentRoot root= ((IPackageFragmentRoot)element);
				addAllCUs(cleanUp, root.getChildren());
			} else if (element instanceof IPackageFragment) {
				IPackageFragment pack= ((IPackageFragment)element);
				addAllCUs(cleanUp, pack.getChildren());
			}
		}
	}
	
	public void testNullCleanUp() throws Exception {
		CleanUpRefactoring cleanUpRefactoring= new CleanUpRefactoring();
		addAllCUs(cleanUpRefactoring, MyTestSetup.fJProject1.getChildren());
		cleanUpRefactoring.addCleanUp(new ICleanUp() {
			public IFix createFix(CompilationUnit compilationUnit) throws CoreException {return null;}
			public Map getRequiredOptions() {return null;}
			public Control createConfigurationControl(Composite parent, IJavaProject project) {return null;}
			public void saveSettings(IDialogSettings settings) {}
			public String[] getDescriptions() {return null;}
			public boolean canFix(CompilationUnit compilationUnit, IProblemLocation problem) throws CoreException {
				return true;