Project: Eclipse_Platform_UI
Bug 80833 [Import/Export] Import exisiting should pre-check for project already in workspace
Reported: 2004-12-13 11:58:29 | Status: verified fixed

While it is good that it lets you import projects in the default workspace location, it should not let you select projects that already exist in the workspace (since importing such a project will fail). When searching for .project files in the file system, it could use IWorkspaceRoot.findFilesForLocation followed by checking IFile.exists() to filter out .project files for existing projects.

Files changed in fix:
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingTest.java