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 - API to customize Open Project startup folder
Summary: API to customize Open Project startup folder
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2005-04-30 01:47 UTC by Thomas Preisler
Modified: 2006-03-22 20:28 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.