简体   繁体   中英

Shortcut to see class hierarchy in Eclipse

我有一个查询,我正在使用eclipse,我已经导入了项目,并且像往常一样,在项目中有30到40个包,每个包都包含一组类,现在说在名为AI的包中有一个名为abc的类,后来子包,让我们说在名为W的包中我已经扩展并覆盖了该类的一些方法(abc)并构造了一个名为def的新类,它扩展了父类abc,现在请让我告诉我已经打开了父类eclipse中的abc是否有任何快捷方式,我可以通过它找到后面的包中的哪些子类覆盖它的方法以及哪些子类正在扩展它...!

是:当光标位于类名上时(如: public class A|bc ),可以按Ctrl + T查看Abc的继承层次结构。

If you press CTRL-T twice, it will show you the supertype hierarchy, which also includes any Interfaces that your class implements. Occasionally very useful.

Also,

Right click on the file in the project explorer -> Open type hierarchy.
Same works for right click on the class name in editor window.
Shortcut is F4.

Also, apart from worthy shortcut that Aaron posted, you can also do this: -

Go to Windows -> Show Views -> Open Outline view (If not found - go to Others)

It will open an Outline View which shows your class hierarchy of your current class

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM