Bug 82260 ResultCollector: remove dependency to internal J Core interface
I20050104-1600 Summary says it all.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/CodeCompletionTest.java
buf.append("    }//here\n");
			buf.append("}\n");
			assertEqualString(doc.get(), buf.toString());
		} finally {
			part.getSite().getPage().closeAllEditors(false);
		}
	}
	public void testEnumCompletions() throws Exception {
		if (!JavaPlugin.USE_COMPLETION_REQUESTOR) {
			System.out.println("CodeCompletionTest.testEnumCompletions() disabled in legacy mode");
			return;
		}
		IPackageFragmentRoot sourceFolder= JavaProjectHelper.addSourceContainer(fJProject1, "src");
		IPackageFragment pack1= sourceFolder.createPackageFragment("test1", false, null);
		String contents= "package test1;\n" + "\n" + "enum Natural {\n" + "	ONE,\n" + "	TWO,\n" + "	THREE\n" + "}\n" + "\n" + "public class Completion {\n" + "    \n" + "    void foomethod() {\n" + "        Natu//here\n" + "    }\n" + "}\n";
		ICompilationUnit cu= pack1.createCompilationUnit("Completion.java", contents, false, null);
		String str= "//here";
		int offset= contents.indexOf(str);
		ResultCollector collector= new ExperimentalResultCollector();
		collector.reset(offset, cu.getJavaProject(), cu);
		collector.setViewer(null);
		collector.setReplacementLength(0);
		collector.setPreventEating(true);
		codeComplete(cu, offset, collector);
		JavaCompletionProposal[] proposals= collector.getResults();
		JavaCompletionProposal proposal= null;
		for (int i= 0; i < proposals.length; i++) {
			if (proposals[i].getDisplayString().startsWith("Natural")) {
				proposal= proposals[i];
			}