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
ICompilationUnit cu= pack1.createCompilationUnit("A.java", contents, false, null);
		IEditorPart part= EditorUtility.openInEditor(cu);
		try {
			String str= "//here";
			int offset= contents.indexOf(str);
			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();
			JavaCompletionProposal toStringProposal= null;
			for (int i= 0; i < proposals.length; i++) {
				if (proposals[i].getDisplayString().startsWith("toString()")) {
					toStringProposal= proposals[i];
				}
			}
			assertNotNull("no proposal for toString()", toStringProposal);
			IDocument doc= JavaUI.getDocumentProvider().getDocument(part.getEditorInput());
			toStringProposal.apply(doc);
			buf= new StringBuffer();
			buf.append("package test1;\n");
			buf.append("\n");
			buf.append("import java.io.Writer;\n");
			buf.append("\n");
			buf.append("public class A extends Writer {\n");
			buf.append("    public void foo() {\n");
			buf.append("    }\n");