This link has been bookmarked by 1 people . It was first bookmarked on 29 Sep 2009, by Fabio de Miranda.
-
Fabio de MirandaLast week I wrote a little module that uses the NetBeans Visual Library and the Javac Tree API to create a graph of the contents of a Java file, showing dependencies between class members. It's now available on the NetBeans daily build update center - if you're running a daily build of NetBeans, just go to Tools | Plugins and download Graphical Class Viewer.
My question is, would anybody actually find this useful? It was mostly an experiment to get more fluent with a couple of APIs I need to know well - but it seems like it could be handy if you're going to edit a class you didn't write and want to see where the action is - or if you've got a bunch of encapsulated fields and want to quickly see if anything is not using the getters and setters.
What it does:
Shows a graph (see screenshot below)
If you hover the mouse over, say, a method, then the path to things that method calls/uses will be shown in red, and things that call that method are shown in blue
You can click the arrow button on the widget for any class member and see its source code
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.