Bug 365930 - [Import/Export] The "Import Existing Projects into Workspace" dialog should remember the last location
Summary: [Import/Export] The "Import Existing Projects into Workspace" dialog should r...
Status: RESOLVED DUPLICATE of bug 400399
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2011-12-07 11:58 EST by Helmut J. Haigermoser CLA
Modified: 2019-07-11 04:14 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut J. Haigermoser CLA 2011-12-07 11:58:19 EST
Build Identifier: 

The wizard "Import Existing Projects into Workspace" allows to browse for a directory. The default for that is the workspace root, which is weird since projects in the workspace usually don't need to be imported to it anymore.

The core of this bugzilla, however, is a request to remember the location used with the wizard across sessions. This already behaves correctly within the session, importing projects from <directory> will set the browse default to <directory> the next time the wizard is used. However, that location is reset to <workspace> open Eclipse restart again.

Reproducible: Always

Steps to Reproduce:
1. Import Existing Projects into Workspace: default is <workspace>, browse to <directory> and import a project
2. Import Existing Projects into Workspace: default is <directory>
3. Restart Eclipse
4. Import Existing Projects into Workspace: default is <workspace>
Comment 1 Helmut J. Haigermoser CLA 2011-12-07 11:58:49 EST
CQ:WIND00088908
*changing version to 3.7*
Comment 2 Missing name CLA 2018-09-26 10:38:00 EDT
This bug is still around and as annoying as ever.

Importing several projects into Eclipse 4.9 is a very tedious process.

* The 'Existing Maven Projects' does not remember the last directory you imported a project in.
* It starts in the workspace home which doesn't make any sense.
Comment 3 Brian de Alwis CLA 2018-09-26 12:34:38 EDT
Try the new Smart Import wizard via File > Open Projects from File System…
Comment 4 Wim Jongman CLA 2018-09-27 10:02:51 EDT
(In reply to Brian de Alwis from comment #3)
> Try the new Smart Import wizard via File > Open Projects from File System…

That is unexpected. Yesterday I was pissed because I could not start the smart importer for a .project-less maven project on the filesystem with Import. Who would have guessed that there is an alternative import in the file menu?
Comment 5 Benedikt Kuntz CLA 2019-07-10 07:57:22 EDT
In 20190614-1200, in import dialogs (general, maven...), the last paths are persisted (you may have to drop-down the combo box to see the entries).

There are some other strange things: In the Import Projects Wizard, the "close newly imported..." and "hide projects that ..." selections are not persisted.

I will try to add a gerrit to fix this....
Comment 6 Eclipse Genie CLA 2019-07-10 08:07:46 EDT
New Gerrit change created: https://git.eclipse.org/r/145852
Comment 7 Benedikt Kuntz CLA 2019-07-10 08:17:48 EDT
With the change, the dialog now sets the path selection (archive or directory) to the latest available path if one is there. The browse button uses this path as root directory (as before).
Also, the two other checkboxes are persisted.
This behaviour is different than the other data import wizards (Existing Maven Projects, etc.) but the same as the Import Preferences wizard (same file will be selected again)...
Comment 8 Paul Pazderski CLA 2019-07-10 16:29:02 EDT
I have deliberated if your change fit this bug or is out of scope and I think it is a little step to far. I appreciate your effort in finding an existing bug but as you said the original topic of this bug is already fixed.

But I really welcome your contribution so I created a new bug 549154 for you.

PS: you may repost your last comment in the new bug or I will quote you :D
Comment 9 Paul Pazderski CLA 2019-07-10 16:30:03 EDT
(In reply to Missing name from comment #2)
> This bug is still around and as annoying as ever.
> 
> Importing several projects into Eclipse 4.9 is a very tedious process.
> 
> * The 'Existing Maven Projects' does not remember the last directory you
> imported a project in.
> * It starts in the workspace home which doesn't make any sense.

m2e problem so out of scope for this bug.
Comment 10 Paul Pazderski CLA 2019-07-10 16:30:36 EDT
Original bug was fixed long ago via bug 400399.

*** This bug has been marked as a duplicate of bug 400399 ***