Can I see interfaces in Eclipse's type hierarchy view?

纵然是瞬间 提交于 2019-12-03 10:46:43

CTRL-T is what you want.

Highlight the name of the class in the editor, hit CTRL-T twice. This will show you the supertype hierarchy in a little popup.

But wait, it gets better. Go to your interface. Put your cursor on a definition. CTRL-T (once) will show you all the classes that implement the interface. If you select one of these classes in the popup, it will take you straight to the implementation of the function you had your cursor on.

There, navigation between interfaces and their implementations just became a whole lot easier. Since I discovered this, I hardly ever use the Hierarchy view anymore.

Did you click on "Show the Supertype hierarchy?

Because in this case, it will show the interfaces.

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