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 49737 - Cannot distinguish sources in Go to class dialog
Summary: Cannot distinguish sources in Go to class dialog
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: issues@editor
URL:
Keywords: UI, USABILITY
Depends on:
Blocks:
 
Reported: 2004-09-30 14:44 UTC by _ rkubacki
Modified: 2007-11-05 13:40 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch to fix the problem (17.22 KB, patch)
2005-04-16 21:42 UTC, Jesse Glick
Details | Diff
Updated patch (15.60 KB, patch)
2006-01-02 22:34 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-09-30 14:44:24 UTC
I have two platforms defined in my IDE (JDK1.4.2
and JDK1.5) and it is not possible to which item
in go to class dialog belongs to which platform. 

Since the scenario is not quite commom my idea is
to add tooltip showing source location (file path
or URL) that can activate only if I move mouse
over the item.
Comment 1 Roman Strobl 2004-12-08 17:07:42 UTC
Changing subcomponent to navigation.
Comment 2 Jesse Glick 2004-12-10 17:49:58 UTC
I consider this a serious usability problem, and I run into it constantly.

A tooltip is not enough IMHO - not KB-accessible. The dialog should
have a text field in which it displays the full path to the selected
file (i.e. FileUtil.getFileDisplayName).
Comment 3 Dusan Balek 2005-03-03 08:51:46 UTC
Tooltips added as a "hotfix" solution for 4.1.

Checking in NbJMIResultItem.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/NbJMIResultItem.java,v
 <--  NbJMIResultItem.java
new revision: 1.8; previous revision: 1.7
done

Reassigning to Ruda to find a better UI solution for the next releases.
Comment 4 Rudolf Bock 2005-03-17 19:48:30 UTC
Yes, a tooltip isn't the right solution for that. There should be maybe a static text field between the text 
area and the settings checkboxes.
Comment 5 Jan Chalupa 2005-03-17 19:59:04 UTC
Please don't use the LATER resolution flag. The meaning is undefined and since
the issue appears to be in the RESOLVED state, it often falls through the
cracks. Mark it as FIXED, change to ENHANCEMENT, lower the priority, ... just
don't use LATER and REMIND. Thanks.
Comment 6 Miloslav Metelka 2005-03-18 10:01:22 UTC
Rudo, if you think that the issue is resolved from your side please reassign it
back to editor developers (IMHO using "Reassign issue to owner of selected
subcomponent" should work just fine). Thanks.
Comment 7 Jesse Glick 2005-04-16 21:42:24 UTC
Created attachment 21689 [details]
Patch to fix the problem
Comment 8 Jesse Glick 2005-04-16 21:44:20 UTC
I made up a patch; please consider applying it. Only took an hour or so. Changes:

1. Adds "Location" field which simply displays the same thing as the tooltip.

2. Changes tooltip to show only the source root, not the complete file path -
you can already see the class name and package in the list.
Comment 9 trembovetski 2005-04-17 22:38:56 UTC
There's still (as of the latest nightly build of 4.2) no information
on which project a class in the GoToClass dialog (Alt+Shift-O) is
coming from.

I often have multiple projects with many similar or same classes, and
there's no way to tell which class comes from which project by
looking at the class names in GoToClass dialog.

Dmitri
Comment 10 Jesse Glick 2005-05-10 14:24:51 UTC
It's been three weeks, can the patch be evaluated?
Comment 11 Roman Strobl 2005-07-09 08:03:35 UTC
Can somebody evaluate the patch for Jesse? Thanks.
Comment 12 Jesse Glick 2006-01-02 22:33:28 UTC
I guess not... I will attach an updated patch. (Original no longer applied
cleanly.) I guess I'll just apply it if no one cares to review it first.
Comment 13 Jesse Glick 2006-01-02 22:34:23 UTC
Created attachment 28133 [details]
Updated patch
Comment 14 Jesse Glick 2006-01-04 19:17:49 UTC
OK, applied, feel free to review/revert retroactively...

committed   * Up-To-Date  1.5        
java/editor/lib/src/org/netbeans/editor/ext/java/Bundle.properties
committed   * Up-To-Date  1.3        
java/editor/lib/src/org/netbeans/editor/ext/java/JavaFastOpenPanel.form
committed   * Up-To-Date  1.4        
java/editor/lib/src/org/netbeans/editor/ext/java/JavaFastOpenPanel.java
committed   * Up-To-Date  1.13       
java/editor/src/org/netbeans/modules/editor/java/NbJMIPaintComponent.java