Find methods calls in Eclipse project

Shailesh Tainwala picture Shailesh Tainwala · Mar 11, 2011 · Viewed 135.2k times · Source

I have a class X containing method myMethod(). I would like to find locations in all projects in my current workspace where this myMethod() is being called. I cannot use any search functions as there are several classes with myMethod(), and it isn't static. Hence I need to know the name of the objects of this class, which isn't possible without manually exploring the projects.

Does Eclipse have a solution for this?

Answer

Thilo picture Thilo · Mar 11, 2011

Go to the method in X.java, and select Open Call Hierarchy from the context menu.