More Intelligent Eclipse “Open Call Hierarchy”?

前端 未结 3 762
闹比i
闹比i 2020-12-20 20:56

If I have a Java project in Eclipse, I can right-click on a method name and \"Open Call Hierarchy.\" Suppose I have two interfaces, A and B, that both specify a method x().

3条回答
  •  离开以前
    2020-12-20 21:49

    I have tried this with a frequently-overridden method, toString(). When I right-click on it and choose "Open Call Hierarchy," Eclipse happily searches through my entire workspace and returns all references to that method signature.

    I often rely on Eclipse to go the opposite way: I select a method invocation and press F3 to Open Declaration. But I don't think Eclipse is able to go the direction you want, from the declaration to the calling reference.

提交回复
热议问题