Find all occurrences of a function in Eclipse

In Eclipse, how can I find all the function uses in a Java application? What is a shortcut for this?

I tried using Ctrl + H to search by method, but it returns me all the methods with the same name.

+42
java eclipse
Jan 31 '11 at 12:27
source share
5 answers

You can find the menu item in the context menu by right-clicking on a function. You can also press Ctrl + G when the cursor is above a function or member. Not every project and file type supports this feature. For example, EPIC Perl only supports function definition lookups.

+35
Jan 31 '11 at 12:29
source share

Select a method and press Ctrl + Alt + H to open its Call Hierarchy , which will show you where the method is being called from.

+33
Jan 31 '11 at 12:30
source share

Use Ctrl + Shift + G to search the entire workspace.

+20
Jun 04 '13 at 11:00
source share

These are hacks, but if you temporarily change the method signature, this will create compilation errors that are easy to find.

+6
May 27 '14 at 15:43
source share

Use Ctrl + G to search for all kinds of function use in the workspace.

+4
Jan 31 '11 at 12:28
source share



All Articles