Bug 106814 [code manipulation] 'Add import' leaves '.' before type name
Build id: I20050627-1435 Does not happen always, seps are like this: 1. Type a class name within method body and hit Ctrl + Space to resolve class - this adds fully qualified class since auto imports are disabled. 2. Type '.' and access a field. Code looks like this: com.some.util.TypeDocs.SALES_MEMO 3. Hit Ctrl+Shif+M to add import. Import is added, but the dot before class name remains and must be removed manually. Code is like this: .TypeDocs.SALES_MEMO
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/AddImportTest.java
} else {
			return setUpTest(new AddImportTest("testRemoveImports1"));
		}	
	}
	
	public static Test setUpTest(Test test) {
		return new ProjectTestSetup(test);
	}
	protected void setUp() throws Exception {
		fJProject1= ProjectTestSetup.getProject();
		
		Hashtable options= TestOptions.getDefaultOptions();
		options.put(DefaultCodeFormatterConstants.FORMATTER_NUMBER_OF_EMPTY_LINES_TO_PRESERVE, String.valueOf(99));
		JavaCore.setOptions(options);
	}
	protected void tearDown() throws Exception {
		JavaProjectHelper.clear(fJProject1, ProjectTestSetup.getDefaultClasspath());
	}
	
	public void testAddImports1() throws Exception {
		IPackageFragmentRoot sourceFolder= JavaProjectHelper.addSourceContainer(fJProject1, "src");
		IPackageFragment pack1= sourceFolder.createPackageFragment("pack1", false, null);
		StringBuffer buf= new StringBuffer();
		buf.append("package pack1;\n");
		buf.append("\n");
		buf.append("import java.util.Set;\n");
		buf.append("import java.util.Vector;\n");
		buf.append("import java.util.Map;\n");
		buf.append("\n");
		buf.append("import pack.List;\n");