n_x_l
n_x_l

Reputation: 1610

Is there an Eclipse command that lists classes that implement an Interface X?

A shortcut that does that will be helpful. I am both new to Eclipse and navigating a large code base, which makes going back and forth between implementations and interfaces a little bit cumbersome.

Upvotes: 0

Views: 79

Answers (4)

Axel Podehl
Axel Podehl

Reputation: 4303

The Plugin that I really liked is this one: https://eclipse-tools.sourceforge.net/implementors/ - simply download, copy into eclpise/plugins folder and restart Eclipse. A right-mouse click will then show "Open Implementations" and "Open Interface" - very useful, I found.

Upvotes: 0

Kuldeep Jain
Kuldeep Jain

Reputation: 8598

You can get that by selecting the interface and hitting F4 (Open Type Hierarchy) or just Right-click on the interface(or even class) name and select Open Type Hierarchy.

enter image description here

Upvotes: 0

Mino
Mino

Reputation: 11

Choose the Interface and push F4(Open Type Hierarchy) or open interface double click on Iface name and push Ctrl+T(Quick Type Hierarchy)

Upvotes: 1

JB Nizet
JB Nizet

Reputation: 691655

Ctrl T on a class name: quick type hierarchy

F4 on a class name: type hierarchy

On a method name: Ctrl hover: a menu appears with "Open implementation".

Upvotes: 1

Related Questions