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 111078 - Default folder for IDE is renamed after browsing on Mac OS X
Summary: Default folder for IDE is renamed after browsing on Mac OS X
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P3 blocker (vote)
Assignee: dlipin
URL:
Keywords:
: 111682 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-26 10:44 UTC by Roman Mostyka
Modified: 2007-08-07 08:55 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 Roman Mostyka 2007-07-26 10:44:25 UTC
1. Start installer. Go to the step where IDE's folder should be specified. In destination text field you can see path
"/Applications/NetBeans 6.0 200707250000.app".
2. Click "Browse..." button for select right place.
3. In appeared dialog choose necessary folder and select "Choose".

Result: In destination text field appears "selected_dir/BaseIDE.app". Why IDE's folder was changed?
Comment 1 dlipin 2007-08-01 15:58:33 UTC
The erroneuos code is in DestinationPanel.DestinationPanelSwingUi#browseButtonPressed.
We make suffix from product display name which result in Base IDE (not NetBeans XXX).

Anyway, the similar strange behavior is observered on all other platforms.
E.g. on windows I type non-existing directory in the Browse dialog and "NetBeans XXX" is added to it (as a child).
We should revise directory selection behavior...
Comment 2 Kirill Sorokin 2007-08-02 00:43:02 UTC
*** Issue 111682 has been marked as a duplicate of this issue. ***
Comment 3 dlipin 2007-08-06 13:17:03 UTC
'browse and select' behavior has been fixed for macosx and left "as is" for other platforms.

Now if the user selects not default directory (for NetBeans IDE) using browse button then the location is set to
<selected dir>/NetBeans 6.0 <build-number>.app

PS. actually, the last child folder name is used for getting the new directory full path.
If the user changes the application name in the text field to e.g. 'NetBeans 6.0.app' (e.g. to /Applications/NetBeans 
6.0.app), then after selecting other location using browse button (e.g. to /Users/<user>/Desktop), the final location 
is changed to /Users/<user>/Desktop/NetBeans 6.0.app.
Comment 4 Roman Mostyka 2007-08-07 08:55:05 UTC
Verified with build 200708070000.