How to view all developers of this interface in NetBeans for Java?

I am trying to evaluate NetBeans as a veteran of Eclipse. In Eclipse, I could press F4 and I would assign a class hierarchy to a given class or interface. For example, show me all the classes that implement the InputStream. It is also important that he shows me this in all my dependencies, and not just on my code.

+6
source share
6 answers

You cannot do this without any plugin or other program. The inability to find use in libraries has been discussed for 10 years and is currently listed as an improvement to priority 1 without an easy workaround. A scheduled commit date has not been announced.

+1
source

Try this, select a type, for example. "String", then right-click → Navigation → Check 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 you opened, you will see a drop-down list with the inscription "Supertypes". Change this to subtypes, there you will see all classes or interfaces that implement / extend your interfaces or extend your classes.

+5
source

Try it,

ctrl + alt + click 

this list will list all implementations of the same interface

+3
source

The hot key "Alt + F12" works for me in NetBeans 8.0.2. I believe that "Inspect Hierarchy" exists since NetBeans 6.0 http://wiki.netbeans.org/Java_MembersAndHierarchyPopup Select Subtypes and Refresh. NetBeans Type Hierarchy

+1
source

Right click interface name

Go to> Implementations (and)

0
source

You can use "Find Usage" (select the interface name in the code and ALT + F7). Select Find All Subtypes from the drop-down list and select Open Projects in the Scope area.

This will show you all the classes that implement the interface in all of your open source projects.

-1
source

Source: https://habr.com/ru/post/982669/


All Articles