假设我有:
interface Foo {
void doStuff();
}
class FooImpl implements Foo {
public void doStuff() {
// stuff
}
}
当我看见myFoo.doStuff()
在我的代码中,如果我的光标结束doStuff()
,按 F3 会将我带到doStuff()
接口中的方法Foo
。当然,我通常对这个方法的实现更感兴趣,而不仅仅是签名。
Eclipse 是否有一种简单的方法可以从接口中的方法声明导航到实现类中该方法的实现?
就我而言,实现类是什么不会有任何歧义。
Highlight the method name, and press either CTRLT or F4. You'll see a type hierarchy, but linked to the method rather than the containing classes. Select the desired implementation class.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)