Bug 225754 [Import/Export] Project name should not be same as the folder name
The problem has been detected when I import Eclipse 3.3.2 projects into Eclipse 3.4M6. My projects are organized like this: myproject/common/util myproject/common/test myproject/classworking/asm myproject/classworking/reflect ... the corresponding names of these projects are: myproject-common-util myproject-common-test myproject-classworking-asm myproject-classworking-reflect ... But in 3.4M6, when I import those projects, it appears as: util test asm reflect ... this prevents me from import projects with same dirname (but in other sub-directories)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
/**
	 * Get the array of valid project records that can be imported from the
	 * source workspace or archive, selected by the user. If a project with the
	 * same name exists in both the source workspace and the current workspace,
	 * it will not appear in the list of projects to import and thus cannot be
	 * selected for import.
	 * 
	 * Method declared public for test suite.
	 * 
	 * @return ProjectRecord[] array of projects that can be imported into the
	 *         workspace
	 */
	public ProjectRecord[] getValidProjects() {
		List validProjects = new ArrayList();
		for (int i = 0; i < selectedProjects.length; i++) {
			if (!isProjectInWorkspace(selectedProjects[i].getProjectName())) {
				validProjects.add(selectedProjects[i]);
			}
		}
		return (ProjectRecord[]) validProjects
				.toArray(new ProjectRecord[validProjects.size()]);
	}
	/**
	 * Determine if the project with the given name is in the current workspace.
	 * 
	 * @param projectName
	 *            String the project name to check
	 * @return boolean true if the project with the given name is in this
	 *         workspace
	 */