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 257535 - Add feature to find usages when I ctrl + click on a method declaration
Summary: Add feature to find usages when I ctrl + click on a method declaration
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-12 09:55 UTC by Christian Lenz
Modified: 2016-01-12 10:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
find usages in intelliJ (70.64 KB, image/gif)
2016-01-12 09:55 UTC, Christian Lenz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2016-01-12 09:55:59 UTC
Created attachment 158097 [details]
find usages in intelliJ

If you have a method declaration like this:

public String fooBar() {
// TODO: Foo.
}

and you ctrl + click of the name (fooBar), the IDE says that you can't go to the declaration. Why? Because it is the declaration. So normal behaviour.
This is only working, if you do a ctrl + click on the call of the method:
fooBar(); So everything is fine here.

What IntelliJ does, and this ia really nice I think, when I ctrl + click on the name of the method declaration, it shows me e all usages. So I don't have to do a "Find usages", I can do it right from the method declaration. I think it's a bit what Netbeans does with inherited classes or interfaces, the little circle in front of it, where I can go to the extension, etc.

This feature would be very nice and handy to ctrl + click on any method declaration to find usages of this method. It opens in a little drop down. lools a bit like the code completion popover. You can have a look at my screen capture for this.


Regards

Chris
Comment 1 Christian Lenz 2016-01-12 09:56:44 UTC
What you can see first is normal behaviour and what you then see is the behaviour that I would like to see in netbeans. Not only for Java, please do it for PHP, JS, C/C++, and so on.