Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view all implementors of a given interface in NetBeans for Java?

I'm trying to evaluate NetBeans, being a veteran Eclipse user. In Eclipse I could press F4, and I would a class hierarchy for a given class or Interface. For example - show me all the classes that implements InputStream. It's also important it will show me this across all my dependencies and not just my code.

like image 437
Asaf Mesika Avatar asked Feb 18 '15 09:02

Asaf Mesika


2 Answers

Try this, select the type e.g. "String", then click with the right mouse button -> Navigate -> Inspect Hierarchy. On the right side you will see a window called "Hierarchy" or maybe just a vertical text with "Hierarchy" which is a minimized window (click to open).

If opened you see a combobox with "Supertypes". Change this to subtypes, there you see all classes or interfaces implementing/extending your interfaces or extending your classes.

like image 85
Sempfer Avatar answered Nov 09 '22 20:11

Sempfer


Try this,

ctrl + alt + click

this will list all implementations of same interface

like image 42
Ravindra Thorat Avatar answered Nov 09 '22 20:11

Ravindra Thorat