BuZZ-dEE
BuZZ-dEE

Reputation: 6929

Jump into interface in Eclipse by shortcut

I want to jump from an class (method) that implement an interface (method) to the interface method by a keyboard shortcut in Eclipse.

Is there a shortcut to do this?

Upvotes: 2

Views: 324

Answers (4)

skstar
skstar

Reputation: 425

answer to the question described in comments under flafoux answer, but to clearly explain the answer, giving here...

  1. Select Method in implementation and Press F4 button
  2. It shows Type Hierarchy
  3. On Type Hierarchy, on the top section click on toolbar button Show Supertype hierarchy (this step is only required once)
  4. On Type Hierarchy, detail section shows Interface method
  5. Click on the (automatically selected) method

Upvotes: 1

Lii
Lii

Reputation: 12112

Use Quick Type Hierachy, Ctrl + T.

When this is used while the cursor is inside a method you will get a popup which lets you select among the superclasses which declare the current method. By pressing Ctrl + T again while the popup is still open it lets you select among implemented interfaces which declare the current method.

Upvotes: 0

flafoux
flafoux

Reputation: 2110

Press F4 with focus on the method.

Upvotes: 1

BuZZ-dEE
BuZZ-dEE

Reputation: 6929

Goto to "Window" -> "Preferences" -> "General" -> "Keys

There search for "Open Super Implementation" and create a key binding for that.

Eclipse: "Open Super Implementation"

Upvotes: 2

Related Questions