Utku
Utku

Reputation: 2187

How to find all instances of an interface in Eclipse?

Is there a way to make Eclipse show all instances of an interface?

That is: If I have an interface named IMyInterface, I want Eclipse to show me all objects that are of type IMyInterface in my workspace. I want to learn all instances of an interface, e.g. all lines that start with IMyInterface iMyInterfaceInstance = ....

Upvotes: 4

Views: 378

Answers (1)

Tunaki
Tunaki

Reputation: 137309

You just need to press F4 (or Ctrl+T) when the cursor is on the interface name. This will open the "Type Hierarchy" tab where you'll be able to see all types of IMyInterface.

If you need to see all references of the interface inside your workspace, you can press Ctrl+Shift+G when the cursor in on the interface name.

Upvotes: 7

Related Questions