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 96880

Summary: Go to Type dialog should put align packages and classes
Product: java Reporter: Jesse Glick <jglick>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker CC: markiewb, mkrauskopf, phrebejk
Priority: P3 Keywords: UI
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jesse Glick 2007-03-01 01:31:12 UTC
Current GtT will display e.g.

XMLUtil (org.openide.xml)
XMLUtil (org.netbeans.lib.updater)
XMLUtil (org.netbeans.nbbuild)
XMLUtils (java.util)
XMLUtilTest (org.openide.xml)

etc. The layout is rather clumsy, especially the parentheses (visually
distracting), the package after the class (in contrast to the normal FQN
display), and the lack of alignment.

Suggest a simple change to a tabular format:

         org.openide.xml.XMLUtil
org.netbeans.lib.updater.XMLUtil
    org.netbeans.nbbuild.XMLUtil
               java.util.XMLUtils
         org.openide.xml.XMLUtilTest

This would still let you quickly see the class names and compare them, but you
could also see the package names and FQNs quickly without having to move your
eyes back and forth.
Comment 1 Petr Hrebejk 2007-03-07 10:04:41 UTC
Hmm, I changed the color of the package name to gray recently so it should be
easier to visually navigate to either class name or to package. I could
teoretically implement the suggested tabular format, however it would have other
drawbacks. 

1) Need to compute all items renderers in advance to find out the  correct width
of the package column
2) If the dialog gets too small the ClassName instead of the package name would
get hidden

Reaassignig to Jano Rojcek to decide.

Comment 2 Jesse Glick 2007-03-07 10:12:41 UTC
I will try the new appearance soon. #1 could be a real performance problem, I
guess. (You could maybe adjust the column position in a renderer based on rows
rendered so far - not sure if that works. Or you could guess based on String
lengths of all items, if you have them all computed at once?) #2 might be a
problem depending on how you set the default size of the dialog. Probably open
to experimentation.

Also see related issue #96878.