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 167312 - Hyperlinking on identifier declaration could navigate to usages
Summary: Hyperlinking on identifier declaration could navigate to usages
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-18 15:40 UTC by Petr Jiricka
Modified: 2013-04-05 20:31 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2009-06-18 15:40:15 UTC
Currently hyperlinking in source works when I click on a place where a particular identifier (class, method or field
name) is *used*, e.g. clicking on the getName() method call goes to the declaration of the getName() method. However,
when I click on the *declaration* of the method, the IDE does nothing. What we could do in this case is navigate to the
*usages* of the identifier. After hyperlinking on an indentifier declaration, the IDE would offer a small menu (similar
for example to the menu displayed by the "Insert code" command), which would contain the usages of this identifier in
some defined scope. I could navigate (using the keyboard) to a particular usage and the IDE would bring me to the
desired source.

This would be a simpler way to use the Find Usages feature - instead of displaying and confirming the dialog and then
displaying the results in the output window area and navigating in the tree structure of the result, I could simply
navigate in the small menu. Also, this would not litter my output window with tabs labeled "Usages of class XYZ", which
I often don't need.