Download NetBeans!

20090326 Thursday March 26, 2009

Dependency Analyzer for NetBeans Modules

One of the 5 really cool student projects recently created in Linz is... a NetBeans module dependency analyzer! Here it is in action, pretty cool:

I highly recommend it, obviously. (Click the link above to jump to where you can download it.) It's a great tool and possibly feedback could be given to its author.

Mar 26 2009, 08:57:43 AM PDT Permalink

Trackback URL: http://blogs.sun.com/geertjan/entry/dependency_analyzer_for_netbeans_modules
Comments:

When I try this, I get an exception:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1932)
at java.lang.String.substring(String.java:1905)
at at.csc.depvisualizer.visual.ModuleWidget.<init>(ModuleWidget.java:81)
(...)

lines 80 and 81 of ModuleWidget.java are
int lastpt = data.getCodeNameBase().lastIndexOf('.');
displayname = data.getCodeNameBase().substring(lastpt);

Now it does that only with one of my modules, but the strange thing is that there IS a '.' in this project's code name base. It also has a display name, so it should not even get into that 'else' branch... or maybe something's broken with my module...

Anyway, don't know how to reach the author, so I'm writing it here.

Posted by Honza on March 26, 2009 at 09:46 AM PDT #

It can be a great tool, but I can see it working only selecting a single module - which is not much interesting per se. It would be much more interesting to be able to select a module suite and see all the inter-depedencies among its modules.

Posted by Fabrizio Giudici on March 26, 2009 at 10:25 AM PDT #

Honza, I'm also seeing the .foo stuff, even though all my modules have display names.

Posted by Fabrizio Giudici on March 26, 2009 at 10:27 AM PDT #

Hallo,

I have the same problem: My modules have display names but the nodes show only the last part of the modules id (java package) instead: e.g. ".api" if my modules id is de.orat.noaccent.api

Has somebody looked at the code to solve this.

best regards
Oliver

Posted by Oliver Rettig on March 31, 2009 at 12:37 AM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed