How can I find references of a class in Eclipse?

后端 未结 3 1932
野的像风
野的像风 2020-12-14 16:49

I have a java class in my project, how can I find all of the places it\'s being used? Similar to Visual Studios find references.

Thanks.

3条回答
  •  误落风尘
    2020-12-14 17:04

    Just a follow up since I was looking for all references for ALL public methods of a class in Eclipse:

    • Open the class in the editor
    • Open the Outline view
    • select all the methods you want to analyze
    • Hit Ctrl+Alt+H

    This gives call hierarchy results for each method you selected. Hope this helps!

    Edit: used the actual LIST item formatter

提交回复
热议问题