ctrl-click goes to the declaration of the method I clicked. For interfaces with one implementation, how can I just directly go to that implementation?
- Move the cursor to the method call
- Press Ctrl + T
- Select your desired implementation
- Hit Enter
This also works if there are several implementors.
Go to Window > Preferences > General > Editors > Text Editors > Hyperlinking, and uncheck Open Declaration.
From now on, when you hold Ctrl while hovering over a method name, the following popup will be displayed. Just click on the method name and the implementation will be opened (or a Types implementing XXX box, if more than one implementation exists).
You will still be able to use the Open Declaration feature by pressing F3.
In Eclipse 3.5, when you hover over doThings
while holding down the control key, a pop up box gives you two options to click on:
- Open Declaration
- Open Implementation
There's a screenshot as the second section of the Eclipse 3.5 New & Noteworthy page for JDT: