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

Bug 330553

Summary: [Import/Export] Importing a project that exists in workspace location merges the contents
Product: [Eclipse Project] Platform Reporter: Prakash Rangaraj <prakash>
Component: UIAssignee: Prakash Rangaraj <prakash>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: freidin.alex, hadar.hotam
Version: 3.6   
Target Milestone: 3.7 M4   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch v01
none
A patch for reslection of projects in "import project" wizard none

Description Prakash Rangaraj CLA 2010-11-18 06:23:48 EST
(1) Create a project in the default location
(2) Export it to an archive
(3) Delete it (but don't choose the option to delete from disk)
(4) Make some changes in the <workspace root>/<project> directory
(4) Import the archive you exported in step 2

This results in files from both the archive and directory. If the directory already has a file thats available in the archive, then it doesn't modify it.

Ideally we shouldn't be allowing the import at all.
Comment 1 Prakash Rangaraj CLA 2010-11-18 06:26:22 EST
Created attachment 183373 [details]
Patch v01

Essentially the same patch submitted by Hadar from Bug#163601. Removed some whitespaces
Comment 2 Prakash Rangaraj CLA 2010-11-18 06:26:57 EST
Patch v01 released to HEAD
Comment 3 Prakash Rangaraj CLA 2010-12-08 03:36:28 EST
Verified in I20101206-1800
Comment 4 Hadar Hotam CLA 2010-12-21 07:36:02 EST
This patch caused a new bug:
- Open the import existing project wizard.
- Browse into a directory with one or more eclipse projects.
- The projects are selected by default. 
- Unselect some or all of the projects.
- Click the "copy projects into workspace" button
- All projects are reselcted.

Any click on the copy button will always cause the project selection to return to the default state.

Attached is a patch that fixes this issue.
Comment 5 Hadar Hotam CLA 2010-12-21 07:38:48 EST
Created attachment 185628 [details]
A patch for reslection of projects in "import project" wizard