Bug 125455 [clean up] Compile error, opening bracket after //NON-NLS
Version: 3.2.0 Build id: I20060125-0800 Take JUnit source and apply all clean ups on it (5.0 level). You get compile errors. Reasons are looking like the following: if (displayString.startsWith("AllTests")) //$NON-NLS-1$ { setIcon(this.fSuiteIcon); } else { setIcon(this.fLeafIcon); } Can't tell why yet. 'Add NON NLS tag' should allways be executed after 'Add block to single statement'. May be a problem with the clean up, may also be a problem with the ast rewrite.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTest.java
return result;
	}
	
	private void setOptions(ICleanUp fix) {
		setOptions(new ICleanUp[] {fix});
	}
	
	private void setOptions(ICleanUp[] fixes) {
		Hashtable options= JavaCore.getOptions();
		for (Iterator iter= options.keySet().iterator(); iter.hasNext();) {
			String key= (String)iter.next();
			String value= (String)options.get(key);
			if ("error".equals(value) || "warning".equals(value)) {  
				options.put(key, "ignore"); 
			}
		}
		
		for (int i= 0; i < fixes.length; i++) {
			ICleanUp fix= fixes[i];
			Map fixOptions= fix.getRequiredOptions();
			if (fixOptions != null) {
				options.putAll(fixOptions);
			}
		}
		JavaCore.setOptions(options);
	}
	
	private void assertRefactoringResultAsExpected(CleanUpRefactoring refactoring, String[] expected) throws CoreException {
		CompositeChange change= (CompositeChange)refactoring.createChange(null);
		Change[] children= change.getChildren();