Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to show in the project view of Netbeans whether a class is public or package-private?

My team would like to be able to clearly see which classes in a package are public. Unfortunately there seems to be no visual indication of this in the Netbeans project view. Is there any way of adding the behaviour we want? If not, will the plugin API allow me to write a plugin which adds this behaviour myself?

Alternatively, what other solutions are there to get a basic high-level look at the visibility and dependants of classes in a package? Going in to each class, checking its visibility, and doing a 'Find Usages' is not convenient.

like image 407
MikeFHay Avatar asked Nov 13 '22 09:11

MikeFHay


1 Answers

I think, you want to check your class definitions, public or private. You can use Find window, search "public class", "private class" keyword, match case, whole word, and use file pattern "*.java". Maybe you want to use UML diagrams, there is a plugin for that.

like image 192
EceL Avatar answered Nov 15 '22 07:11

EceL