Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find all instances of an interface in Eclipse?

Tags:

java

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 = ....

like image 752
Utku Avatar asked Mar 13 '23 21:03

Utku


1 Answers

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.

like image 166
Tunaki Avatar answered Mar 25 '23 05:03

Tunaki