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 68056

Summary: Global system for directory persistence for JFileChoosers invoked by NB modules.
Product: ide Reporter: _ pcw <pcw>
Component: CodeAssignee: issues@ide <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: hsalameh
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ pcw 2005-11-03 19:13:16 UTC
Various modules in NetBeans use JFileChoosers to allow the user to locate a file
or directory for some reason.  In most cases, the last directory browsed to for
that particular action (e.g. Open Project) should be persisted, even across IDE
sessions for a better user experience.  In some cases, such directories should
be shared (e.g. Open File... and the web service wizard WSDL finder probably
would share the last browsed directory, but I don't think either would want to
share with Open Project).

It would be helpful if NetBeans provided a common API to handle the persistence
and selection of such directories (and allowed modules to add new types.)

Alternatively I suppose this could be partly solved with a contrib module that
simply demonstrated how to persist and restore a directory used for such
purpose, but that doesn't address sharing "last used directories" of similar
types across mutually independent modules.
Comment 1 Jesse Glick 2005-11-04 19:22:06 UTC

*** This issue has been marked as a duplicate of 47737 ***