开发者

Eclipse: Navigate to inheritor / base declaration

开发者 https://www.devze.com 2023-01-17 08:38 出处:网络
In Visual Studio + Resharper, I could hit Alt+Home to go from a method to the corresponding base class or interface declaration, and Alt+End to go from a base declaration to the implementation in a de

In Visual Studio + Resharper, I could hit Alt+Home to go from a method to the corresponding base class or interface declaration, and Alt+End to go from a base declaration to the implementation in a derived class. I could navigate source code pretty quickly, even when everyt开发者_如何学Ching used interfaces rather than concrete classes.

Is this doable in Eclipse? I tried the type hierarchy, but it's far too slow to be useful for me.


When selecting a method that implements an interface or overrides another method, there is a triangle shown in the left border of the java editor. Clicking this triangle navigates you to the overridden method or interface declaration.

Navigating from one base class to one of the derived classes is done by clicking Ctrl+t. But this only gives you the type hierarchy which is really slow, if there are many derived classes.


Take a look at nWire for Java (I'm assuming you are coding in Java, it also works for PHP). nWire works with you while you code and instantly shows all possible code associations, including interface implementations. It can do a lot more.

0

精彩评论

暂无评论...
验证码 换一张
取 消