score:122

Accepted answer

go to the method in x.java, and select open call hierarchy from the context menu.

score:4

right click on method and click on open call hierarchy

eclipse right click call hierarchy

score:5

select method > right click > references > workspace/project (your preferred context ) 

or

(ctrl+shift+g) 

this will show you a search view containing the hierarchy of class and method which using this method.

score:9

move the cursor to the method name. right click and select references > project or references > workspace from the pop-up menu.

score:10

you can also search for specific methods. for e.g. if you want to search for isempty() method of the string class you have to got to - search -> java -> type java.lang.string.isempty() and in the 'search for' option use method.

you can then select the scope that you require.

score:57

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. you can see the "opencallhierarchy" (ctrl+alt+h). like that many tools are there to make your work easier like "quick outline" (ctrl+o) to view the datatypes and methods declared in a particular .java file.

to know more about this, refer this eclipse reference


Related Query

More Query from same tag