Eclipse - find all classes that extend interface

∥☆過路亽.° 提交于 2019-12-03 01:18:54
Michael Easter

Ctrl+T to view all descendants

Press it the combination a second time (see fine print in initial popup) if you want to display super interfaces/classes.

You CAN do this, but it doesn't involve the Type Hierarchy.

In the Eclipse editor pane, highlight the name of the class of which you want to find extending classes.

Then go to Search > Java Search and the name of that class should be prepoplated in the search field.

Check the 'Limit To > Implementors' radio button.

Click the Search button.

Click on GenCalculator in the editor and press CTRL+T. You will see the quick complete hierarchy.

It is possible to have that aswell in the "Open Type Hierarchy" view, but you will have to switch the different options (button in the upper right corner).

Dean J

Ctrl+H brings up the search, go to Java search, and click "All Occurrences".

You can do it with nWire for Java. However, nWire requires Eclipse 3.3 and above. I highly recommend upgrading.

Move your mouse on the class name and press CTRL+T

You can't do it in only one search.

May be you could use the "Text Search" option and wildcards, something like searching for "*s YourInterfaceName" (trying to catch "extends YourInterfaceName" and "implements YourInterfaceName") but is too tricky.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!