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
if (isDefaultLocation(path)) {
						projectName = path.segment(path.segmentCount() - 2);
						description = IDEWorkbenchPlugin.getPluginWorkspace()
								.newProjectDescription(projectName);
					} else {
						projectName = projectSystemFile.getParentFile()
								.getName();
						description = IDEWorkbenchPlugin.getPluginWorkspace()
								.loadProjectDescription(path);
					}
				}
			} catch (CoreException e) {
				
			} catch (IOException e) {
				
			}
		}
		/**
		 * Returns whether the given project description file path is in the
		 * default location for a project
		 * 
		 * @param path
		 *            The path to examine
		 * @return Whether the given path is the default location for a project
		 */
		private boolean isDefaultLocation(IPath path) {
			
			
			if (path.segmentCount() < 2)