How to find the overridden method in Eclipse?

andreas picture andreas · Aug 7, 2012 · Viewed 7.7k times · Source

When I am looking at a method in eclipse java, how do I jump to the method it overrides/extends?

Answer

Ashutosh Jindal picture Ashutosh Jindal · Aug 7, 2012

Three ways to go about it.

Hyperlink Method (Mouse + Keyboard)

Press CTRL while hovering over the overriden method.

You should see an option called 'Open Super Implementation. Click it !

From here :

enter image description here

Keyboard shortcut

And for bonus points, you can setup a Keyboard shortcut to do this like so :

enter image description here

When you try to setup a keyboard shortcut, you may filter by typing Open Super Im. On my Eclipse Indigo three matches were found. I tried setting them one by one until the shortcut appeared in Navigate -> Open Super Implementation like so :

enter image description here

Mouse only - Using the vertical Ruler

enter image description here

Click the ovverride marker that appears in the Vertical Ruler as in the above snapshot.