Given the code segment:
@Override
public String someMethod()
{
return "foo";
}
Is there a way in Eclipse to quickly jump to the implementation in super? Since it's annotated with @Override, I would think Eclipse would know how to do this.
For now as a clunky work-around, I'll type in "super.someMethod();" as the first line (even though I don't need it), click on the method name on that line, and hit F3.
I'm using Eclipse 3.4.1 (Ganymede) for Solaris.
You can use the shortcut key: Alt + N, S
There should be a little hollow arrow on the left of the method invocation line for the implementation of an interface method, and a little solid arrow on the left of the method invocation line for the implementation of a method override.
Left clicking on the hollow arrow takes you to the interface method.
Left clicking on the solid arrow takes you to the method that's overridden.
I like Alt+N, S as Reimeus wrote. Another option that doesn't require your cursor to be in the function in question is to use the pop-up outline view:
Ctrl-O
to open outlineCtrl-O
to show inherited membersIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With