Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Find call tree of a method

Tags:

java

eclipse

I know that Ctrl + Shift + G gives an output of all the methods that call directly the method I'm searching for. But how can I find the whole tree and not just the caller method. I want to output the whole call chain of a method (caller's caller etc), from the method it first started until the one I'm searching for.

like image 691
Alkis Kalogeris Avatar asked Dec 20 '13 10:12

Alkis Kalogeris


People also ask

How do you check from where a method has been called in eclipse?

Select mymethod() and press ctrl + alt + h . To see some detailed Information about any method you can use this by selecting that particular Object or method and right click.

How do you find out where a method is called?

To display the Call Hierarchy window, right-click in the code editor on the name of a method, property, or constructor call, and then select View Call Hierarchy.

How do I find methods in eclipse?

-Or- press Ctrl+Shift+T (for a type) or Ctrl+Shift+M (for a method). The "Open Type/Method" dialog will appear. If a type/method was previously selected in the editor or outline views, it will be displayed.

How do I go back a call method in eclipse?

Navigating Back to a Previously Viewed Method While browsing code, you'll often want to return to the previous method you were viewing once you're done viewing the method it calls. To do this, use Alt+Left (Backward History) to move back to the last navigation point.


3 Answers

Select the method what you want and press ctrl+Alt+H

like image 185
Rakesh KR Avatar answered Sep 20 '22 23:09

Rakesh KR


You should use Ctrl + ALT + H . Try it.

like image 37
Arnas Ivanavičius Avatar answered Sep 21 '22 23:09

Arnas Ivanavičius


I think Ctrl + Alt + h for Open Call Hierarchy is what you want.

like image 25
micha Avatar answered Sep 22 '22 23:09

micha