Home > DeveloperSection > Forums > Find all instances of an interface in Eclipse?
JAMES Williams
JAMES Williams

Total Post:7

Posted on    December-15-2015 12:37 AM

 Java Java  Eclipse  Interface 

 1 Reply(s)
 580  View(s)
Rate this:
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. Is that possible?

Mayank Tripathi
Mayank Tripathi

Total Post:397

Posted on    December-15-2015 12:42 AM

You just need to press F4 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.

Don't want to miss updates? Please click the below button!

Follow MindStick