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 43239

Summary: Java target chooser uses bad impl for displaying package chooser
Product: java Reporter: Jesse Glick <jglick>
Component: UnsupportedAssignee: Petr Hrebejk <phrebejk>
Status: RESOLVED FIXED    
Severity: blocker Keywords: UI
Priority: P4    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

Description Jesse Glick 2004-05-13 22:28:28 UTC
When running with the "truncate package view"
patch, the Java target chooser panel is screwed up.

1. It shows the truncated package names in the
chooser - should be showing the actual package
names. (No need for icons either, useless.) Just
use a plain JList or something.

2. Worse, if I select a package, it claims it is
going to be creating the file in e.g.

..../nb_all/ant/src/o/apa/too/ant/mod/spi/Whatever.java

when it should be e.g.

..../nb_all/ant/src/org/apache/tools/ant/module/spi/Whatever.java

Apparently the code is using the *display name* of
the package node, which is a very poor idea.
Comment 1 Jesse Glick 2004-05-13 22:30:54 UTC
3. Even worse, even though I *cancelled* the wizard, it created the folder

.../nb_all/ant/src/o/apa/too/ant/module

on disk! Should never do anything unless I press Finish.

P4 only because only happens with the truncate patch AFAIK, but still
shows that the code is not very well written.
Comment 2 Petr Hrebejk 2004-05-19 12:25:55 UTC
Changed to node name. Ehich works and does not clash with the
optionally shortened package name.