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 58465

Summary: API to customize Open Project startup folder
Product: projects Reporter: Thomas Preisler <thp>
Component: Generic Projects UIAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: blocker Keywords: API
Priority: P2    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Thomas Preisler 2005-04-30 01:47:58 UTC
Please provide an API to customize the Open Project's default startup folder.

Currently the default startup folder is the user's home directory. Sun Studio
creates all new projects (by default) in a folder called SunStudioProjects in
the user's home directory, and we want the Open Project dialog to look in this
folder by default as well.
Comment 1 Petr Hrebejk 2005-04-30 14:24:12 UTC
org.netbeans.spi.project.ui.support.ProjectChooser.setProjectsFolder();

Comment 2 Thomas Preisler 2005-05-02 18:49:38 UTC
ProjectChooser.setProjectsFolder() sets the folder last used for creating a new
project. I'm asking for an api to set the folder for opening a project
(Openproject dialog). This is a different property.

Comment 3 Jan Lahoda 2006-01-03 15:29:22 UTC
Well, if you set a folder through
org.netbeans.spi.project.ui.support.ProjectChooser.setProjectsFolder, it is used
the very first time Open Project dialog is opened. The following invocations of
the Open Project dialog use the last selected folder.

Could you please describe what you need? Thanks.
Comment 4 Thomas Preisler 2006-01-05 18:11:36 UTC
According to my tests, setting a folder thru ProjectChooser.setProjectsFolder
affects the default project folder for creating projects with New Project
wizard. It don't change the default folder for opening aproject. It still uses
your home directory. When testing this, use a fresh userdir and try Open project
as first action.

I'm using 4.1. Could this have changed in 5.0?
Comment 5 Jan Lahoda 2006-01-07 16:47:02 UTC
Yes, this has been changed in 5.0, see issue #58010.
Comment 6 Thomas Preisler 2006-03-22 20:16:50 UTC
it is fixed in 5.0. Pls close.....
Comment 7 Jan Lahoda 2006-03-22 20:28:13 UTC
Thanks.