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 107298 - generate code dialog browse button starts at My Documents instead of default folder
Summary: generate code dialog browse button starts at My Documents instead of default ...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Craig Conover
URL:
Keywords:
Depends on:
Blocks: 107278
  Show dependency tree
 
Reported: 2007-06-19 18:14 UTC by George Vasick
Modified: 2007-08-24 01:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Vasick 2007-06-19 18:14:50 UTC
When the user hits the browse button on the generate code dialog, the "Choose the Target Source Folder" dialog starts at
My Documents on windows.  A better location would be the the default folder location or possibly the parent of the default.
Comment 1 Peter Lam 2007-06-19 20:06:10 UTC
this issue might be related to issue 105333.
Comment 2 Peter Lam 2007-06-19 20:07:31 UTC
ops, I meant issue 105642 that I just reopened because it's no longer working in recent build. It was fixed in the
previous builds.
Comment 3 George Vasick 2007-06-19 20:23:19 UTC
Issue 105642 is about the contents of the folder being incorrect is differnet thant this issue regarind the starting
locations for the browse button.
Comment 4 Craig Conover 2007-06-29 07:46:59 UTC
The default folder that is sent to the file (directory) chooser dialog is not an existing folder because it is typically
yet to be created and therefore it defaults to some OS dependent directory (home dir probably). Solution is to work
backwards up the path parent chain on the derived default directory until a valid directory is found and use that.
Comment 5 Craig Conover 2007-06-30 01:37:22 UTC
search up the path parent chain for first valid folder and use that as the starter folder for the chooser.
Comment 6 Peter Lam 2007-08-24 01:30:03 UTC
this is no longer valid in new code gen dialog.