Bug 66048 Adpat JDT test cases to new code formatter defaults
I20040606 The default code formatter settings have changed to Java convention. The JDT/UI test cases must be adapted.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/CodeCompletionTest.java
buf.append("        Runnable run= new Runnable();\n");
		buf.append("    }\n");
		buf.append("}\n");
		String contents= buf.toString();
		
		ICompilationUnit cu= pack1.createCompilationUnit("A.java", contents, false, null);
		
		IEditorPart part= EditorUtility.openInEditor(cu);
		try {
			String str= "Runnable run= new Runnable(";
	
			int offset= contents.indexOf(str) + str.length();
	
			ResultCollector collector= new ResultCollector();
			collector.reset(offset, cu.getJavaProject(), cu);
			collector.setViewer(null);
			collector.setReplacementLength(0);
			collector.setPreventEating(true);
			
			cu.codeComplete(offset, collector);
			
			JavaCompletionProposal[] proposals= collector.getResults();
			
			assertNumberOf("proposals", proposals.length, 1);
			
			IDocument doc= JavaUI.getDocumentProvider().getDocument(part.getEditorInput());
			
			proposals[0].apply(doc);
	
			buf= new StringBuffer();