Community
Participate
Working Groups
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:
PRODUCT VERSION: 106
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).
*** Bug 33643 has been marked as a duplicate of this bug. ***
*** Bug 51200 has been marked as a duplicate of this bug. ***
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?
Patches provided by the community are always welcome.
See also http://wiki.eclipse.org/Platform_UI/How_to_Contribute
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.
Tentatively marking for M4 (i.e. pending review).
Thanks for the patch!
Created attachment 119199 [details] modified patch I had to modify the patch a bit.
Released to HEAD. Thanks for contributing!
thanks for applying!
Is there any chance to get this one in 3.4.2?
We only fix critical bugs for maintenance releases. How often do you create new projects? Does this affect you on a daily basis?
(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.
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?
(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!
(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.
(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.
*** Bug 15718 has been marked as a duplicate of this bug. ***