rishimaharaj
rishimaharaj

Reputation: 1706

How to find which method calls currently selected method in Eclipse?

In Eclipse, when you click on a method name and press the F3 button, it takes you to that method.

How can I do the reverse of this? I have a method that's overloaded (probably about 12 different instances of it), and I would like to quickly find if this particular one is being called from anywhere else.

I know you can click on the method, press Ctrl+ H, and Search for this Method in the Workspace. Is there a simpler keyboard shortcut for this?

Upvotes: 2

Views: 493

Answers (2)

Louis Wasserman
Louis Wasserman

Reputation: 198023

Ctrl+Alt+H opens the Call Hierarchy, which sounds like what you're looking for.

Upvotes: 3

rishimaharaj
rishimaharaj

Reputation: 1706

Click on the method and press Ctrl+Shift+G to perform a Search for References in Workspace.

Upvotes: 5

Related Questions