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 127247 - Initial relative/absolute path absurd when adding JAR to project lib
Summary: Initial relative/absolute path absurd when adding JAR to project lib
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Quick Filechooser (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-12 23:43 UTC by Jesse Glick
Modified: 2009-02-19 21:36 UTC (History)
1 user (show)

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 Jesse Glick 2008-02-12 23:43:05 UTC
In 6af38a548eb5 with quickfilechooser, if I have some projects open using shared libs, and in Library Manager I select
one of them and click Add JAR, the accessory in the filechooser initially shows e.g.

(*) Relative path
../../../../../home/jglick
( ) Absolute path
/home/jglick

even though the actual path displayed in the filechooser is the libs directory where the nblibraries.properties resides.
As soon as I select some actual subdir (or even delete the trailing '/'), then the display updates as expected. I guess
FileChooserAccessory.updateFiles is getting called initially with new File("") for some reason.
Comment 1 David Konecny 2008-03-06 02:28:09 UTC
The problem is in quickfilechooser. During opening it fires SELECTED_FILE_CHANGED_PROPERTY or
SELECTED_FILES_CHANGED_PROPERTY property and value of chooser.getSelectedFiles() or chooser.getSelectedFile() is set to
"/home/jglick" although really selected and displayed file/folder is different. It either should not fire that property
because no file is selected or fire it with file shown in UI and not user home directory.
Comment 2 Jesse Glick 2009-02-19 21:36:29 UTC
release65/contrib #a8cd4832c439