This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 27803 - Remember previously chosen directories and offer them by default
Summary: Remember previously chosen directories and offer them by default
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: API
: 32287 (view as bug list)
Depends on:
Blocks: 29032 29789
  Show dependency tree
 
Reported: 2002-10-03 20:42 UTC by Torbjorn Norbye
Modified: 2003-12-11 14:25 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2002-10-03 20:42:45 UTC
See issue 25677 for motivation. If the user
repeatedly brings up the  "New Project" wizard and
has a particular directory s/he wants to locate
the projects in, the user has to go and edit the
directory every time, since we don't remember the
user's previous selection.

This goes beyond the project location panel. There
are various file choosers used in the projects
module, and many of them suffer from a similar
problem. For example, "Open Project" doesn't start
out in my previously used directory, everytime it
goes back to the filesystem roots (which is
annoying, since I have to drill from / 4-5 levels
down to the directory where my projects are kept). 

In issue 25677 David suggested that we keep a
global option for setting the preferred project
location.  Since NetBeans already has a too many
global options, I suggest we in the first release
only  remember these settings within a single
session. In other words, if you restart the IDE
you get the default the first time again. This is
consistent with how many other tools handle this
(web browsers' "Save As" default directory for
example.)
Comment 1 Torbjorn Norbye 2002-10-03 23:18:36 UTC
I've fixed this for the project wizard panel. I'm leaving the bug
open for other areas. I took a look at the "Open Project" action
which has annoyed me in the past; but it's using 
TopManager.NodeOperation.select() to select a file - and there's
no API there for pre-selecting a node. I think this should
be fixed by creating an improved file chooser to be used
in various places - I believe Petr (or perhaps it was somebody
else) filed an issue on the need for such a filechooser the other
day.
Comment 2 Vitezslav Stejskal 2003-01-08 16:58:42 UTC
This is important to solve as it is used on many places in the
infrastructure and modules. Almost anywhere user need to select some
objects (e.g. files or another entities in the project) and we should
give modules some support soon otherwise module owners will have to
revwrite a lot of code.
Comment 3 Vitezslav Stejskal 2003-06-30 14:03:19 UTC
*** Issue 32287 has been marked as a duplicate of this issue. ***
Comment 4 Dusan Balek 2003-07-01 14:25:11 UTC
Fixed for creating/opening projects and project groups.
ProjectUtil's methods select(...), rememberLocation(...), and
getRememberedLocation(...) added to serve other modules needs.
Comment 5 Jan Becicka 2003-11-25 14:00:03 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 6 Jan Becicka 2003-11-25 14:08:55 UTC
---> CLOSED