Bug 2035 - [Wizards] Previous location of project content area not remembered (1GDQUX8)
Summary: [Wizards] Previous location of project content area not remembered (1GDQUX8)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P4 enhancement (vote)
Target Milestone: 3.5 M4   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 15718 33643 51200 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-10 22:25 EDT by Jeff McAffer CLA
Modified: 2009-02-26 18:12 EST (History)
8 users (show)

See Also:


Attachments
Patch (2.30 KB, patch)
2008-10-29 10:39 EDT, Elena Laskavaia CLA
bokowski: iplog+
Details | Diff
modified patch (2.58 KB, patch)
2008-12-01 14:51 EST, Boris Bokowski CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff McAffer CLA 2001-10-10 22:25:04 EDT
When I create a new project and set the content area to something other than the 
default, it would be good if the last choice was remembered so that when I go to create
the next project, if I choose not to use the default area, that value is used as the initail
setting for the file prompter.  Users who want to create several projects in the same 
non-default area will benefit greatly from this.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 17:47:01 EST
PRODUCT VERSION:
106

Comment 2 Simon Arsenault CLA 2002-02-15 17:45:10 EST
We should use a combo box like the Import and Export wizards do to remember 
past directories entered. Also, if the Export/Import wizard persist this info 
between workbench sessions, then we should do the same for new project wizard 
(I think they do not).
Comment 3 Karice McIntyre CLA 2006-06-28 17:09:48 EDT
*** Bug 33643 has been marked as a duplicate of this bug. ***
Comment 4 Karice McIntyre CLA 2006-07-06 17:28:52 EDT
*** Bug 51200 has been marked as a duplicate of this bug. ***
Comment 5 Elena Laskavaia CLA 2008-10-28 14:59:38 EDT
it is amazing that this request is still open (7 years...), how hard is it to store last location in dialog settings for this dialog or wizard? Do you need a patch?
Comment 6 Karice McIntyre CLA 2008-10-28 15:47:50 EDT
Patches provided by the community are always welcome.
Comment 7 Boris Bokowski CLA 2008-10-28 15:59:28 EDT
See also http://wiki.eclipse.org/Platform_UI/How_to_Contribute
Comment 8 Elena Laskavaia CLA 2008-10-29 10:39:11 EDT
Created attachment 116421 [details]
Patch

Patch for ProjectContentsLocationArea. Stored value only affects directory selection dialog and won't be shown in the field itself.
In this path I store location itself not the parent, if it is needed I can store parent but code would be more messy.

Tested on generic project and cdt c project wizard. Does not look like Java projects are using it.
Comment 9 Boris Bokowski CLA 2008-10-29 11:44:59 EDT
Tentatively marking for M4 (i.e. pending review).
Comment 10 Boris Bokowski CLA 2008-10-29 11:46:08 EDT
Thanks for the patch!
Comment 11 Boris Bokowski CLA 2008-12-01 14:51:15 EST
Created attachment 119199 [details]
modified patch

I had to modify the patch a bit.
Comment 12 Boris Bokowski CLA 2008-12-01 14:52:44 EST
Released to HEAD. Thanks for contributing!
Comment 13 Elena Laskavaia CLA 2008-12-01 14:54:05 EST
thanks for applying!
Comment 14 Andrew Gvozdev CLA 2008-12-11 23:52:33 EST
Is there any chance to get this one in 3.4.2?
Comment 15 Boris Bokowski CLA 2008-12-12 01:35:32 EST
We only fix critical bugs for maintenance releases. How often do you create new projects? Does this affect you on a daily basis?
Comment 16 Andrew Gvozdev CLA 2008-12-12 08:33:51 EST
(In reply to comment #15)
> We only fix critical bugs for maintenance releases. How often do you create new
> projects? Does this affect you on a daily basis?

Yes, I personally create new projects rather on hourly bases. Our SCM process mandates making changes on CVS branches only and we must use a specific build system (this is C/C++ projects). The build system requires a very specific directory structure which needs to be appended to the project name every time a new project is created. When you uncheck "Use default location" in a New Project Wizard, the location field is cleared and one has to navigate back to the workspace using "Browse" button. 

(In reply to comment #5)
> it is amazing that this request is still open (7 years...), how hard is it to
> store last location in dialog settings for this dialog or wizard? Do you need a
> patch?
I am equally amazed. Thanks for the patch, Alena.
Comment 17 Boris Bokowski CLA 2008-12-12 09:03:28 EST
I understand, but I am afraid we cannot put this in 3.4.2 just for you. Sorry!

(Jeff, who filed the bug seven years ago, is a member of the Eclipse PMC who would have to approve a fix for this going into 3.2.2. Jeff, let me know if you think this should be fixed for 3.4.2.)

If I were you, I would write a plug-in that streamlines the process. But maybe there's something that prevents you from doing that?
Comment 18 Boris Bokowski CLA 2008-12-12 09:07:54 EST
(In reply to comment #16)
> (In reply to comment #5)
> > it is amazing that this request is still open (7 years...), how hard is it to
> > store last location in dialog settings for this dialog or wizard? Do you need a
> > patch?
> I am equally amazed. Thanks for the patch, Alena.

Fixing this particular problem is not hard, but it is hard to decide which of the many bugs in our backlog is worth our time, which is very limited unfortunately. Please let us know about things that affect you by commenting on bugs, or ideally, submitting more patches. We are even known to award commit rights to people who contribute patches consistently - this is open source after all!
Comment 19 Andrew Gvozdev CLA 2008-12-12 09:50:05 EST
(In reply to comment #17)
> If I were you, I would write a plug-in that streamlines the process. But maybe
> there's something that prevents you from doing that?
Thanks for asking. It was my intention before I looked at the code (and found this bug report). But I am not sure now if it is possible to do using the wizards. My streamlined process would be:

1. In CVS repository view, Check Out using New Project Wizard
2. Choose appropriate branch and Finish to proceed to C++ Wizard.
3. In C++ Wizard:
 a) enter project name matching the branch name
     and 
 b) append my specific sub-path to the default project location
4. Choose specific C++ project type (implemented by our own plugin)
5. Finish

I have difficulties with two items 3a and 3b.
 a) How to get the branch name out of CVS Wizard to use as a project name by default; and 
 b) how to change the project location in New Project Wizard programmatically and ensure CVS Wizard is aware of that. It seems that location field is a part of the platform control in the Wizard and I could not find any API to be able to set it to desirable value.

If you can offer any insight how you would approach to writing the plug-in it would be greatly appreciated.


Comment 20 Boris Bokowski CLA 2008-12-12 09:58:43 EST
(In reply to comment #19)

Not sure about the C++ wizard, but you can find some code for checking out projects from CVS attached to bug 133088. Does CDT have a newsgroup? I would try asking there too.
Comment 21 Remy Suen CLA 2009-02-26 18:12:10 EST
*** Bug 15718 has been marked as a duplicate of this bug. ***