Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 91715

Summary: [Import/Export] better handle errors when importing project
Product: [Eclipse Project] Platform Reporter: Steen Lehmann <steen.lehmann>
Component: IDEAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WORKSFORME QA Contact: Prakash Rangaraj <prakash>
Severity: enhancement    
Priority: P5 CC: achapiro, daniel.rolka
Version: 3.1Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
apply to WizardProjectsImportPage.java none

Description Steen Lehmann CLA 2005-04-18 04:02:44 EDT
I keep a large number of projects in a directory, and when I add one or more
projects using an external tool (e.g. a source control system) I import the new
projects into Eclipse using Import -> Import Existing Project Into Workspace.

When I get the list of projects they are unsorted, and so it can be hard to
visually make out which is the new project I need to import and which should not
be imported (the existing projects).

It would be even nicer if the projects that already exist in the workspace are
initially unchecked, since importing these result in an error anyway.

Finally, if there is an error importing one of the projects, it would be nice if
the projects that were imported correctly are no longer checked, so that
restarting the import (clicking Finish again) does not try to import them a
second time.
Comment 1 Yves Harms CLA 2005-05-13 03:22:39 EDT
I think the user should not be able to select an already imported project at all.
This could be achieved by disabling or hiding those projects in the wizard.
Comment 2 Karice McIntyre CLA 2005-10-07 15:47:32 EDT
Created attachment 28047 [details]
apply to WizardProjectsImportPage.java

Patch to sort project list.
Comment 3 Tod Creasey CLA 2005-10-07 16:12:20 EDT
Fixed released for build >20051007
Comment 4 Karice McIntyre CLA 2006-02-08 11:04:57 EST
Two more issues need to be addressed for this bug:
1. Projects already in the workspace should appear in the list, initially unchecked (and grayed if the import will not support overwrite).
2. Handle errors when importing a project better.
Comment 5 Karice McIntyre CLA 2006-07-06 13:10:42 EDT
the duplicate issue is the subject of bug 110135.  changing title to reflect remaining issue.
Comment 6 Alex Chapiro CLA 2007-11-21 14:21:53 EST
As far as I understand from the current behavior, "enhancement" offered in message#1 has been implemented. This is very inconvenient now. First of all user expects to make decision what to import. Instead of that, program makes this decision. It causse big confusion even for experienced customers. I think it should work the same as in team plugin (while checking out, it asks customer about duplicate projects).
Comment 7 Susan McCourt CLA 2009-07-15 12:12:03 EDT
"As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009"
Comment 8 Daniel Rolka CLA 2013-09-25 06:45:25 EDT
It seems to be already fixed. The project list (org.eclipse.jface.viewers.CheckboxTreeViewer) uses the comparator (org.eclipse.jface.viewers.ViewerComparator) to reorder its content

Verified in the build: I20130918-2000

Daniel