tags:

views:

157

answers:

5

How can I generate a class diagram and other related modeling diagrams from source code ?

I am open to any tool (Eclipse plug-in etc) but does Netbeans has a plugin for it too?

+1  A: 

You can use Eclipse with a UML plugin to reverse the java code.

Once it is reverse you just need to export the image to a PNG, JPG format (I recommend PNG because the picture is better). Copy then this model export picture into the netbeans project. Some of my friends are doing it and it works well. They prefer netbeans to Eclipse for JEE integration with Glassfish, so they only use Eclipse for the graphical power of GEF/EMF in order to get nice diagrams and still use their favorite IDE Netbeans.

+3  A: 

I've used StarUML for a Java project, and I liked that.

Joe R
A: 

Here is a nice tool: http://java2uml.gforge.enseeiht.fr/

Jay
A: 

I've used ArgoUML for modeling. It is a good open-source project and i've found it to be a good, cheap alternative to commercial products.

yamspog
A: 

You can use Reverse Java. This is an excellent tool to create UML diagrams from any Java application. Very good alternative to expensive products. It creates UML diagrams from your application. It also has rich features to exclude packages and also to export the diagrams as PDF or JPEG.

Rajesh Jadhav