tags:

views:

178

answers:

6

Hello. Because i have a big project i must generate the UML for this...Writing UML for 300 classes is overkill... So is there any solution to generate the diagrams for me ? I am using Netbeans.... Thank you for reading

A: 

I think that Enterprise Architect by sparxx systems can create UML from Java classes

Dror Helper
I am downloading it...
Parhs
A: 

Depending what you need the UML diagrams for, you might want to extract the concepts out of your "300 classes" and make the UML diagrams yourself- it probably helps finding architectural flaws also. Mass converting Code to UML just for the purpose to have UML is usually not very desirable.

If you really need it, yes Enterprise Architect is a good way to go. - classic.

Toni Menzel
A: 

I managed to reverse engineer it with Enterprise Architect and it generated class diagramms but not their relationships. Any idea?

Parhs
A: 

No way that Enterprise Architect is adapted for Java !! I tried it and less than 50% are reversed. This tool could be good for C++, or c# or modeling more than one language but it is not a specialized tool for java. The only reliable Java tool is EclipseUML Omondo. I have a project of 5 000 classes and the tool map all my java project to UML. All java information is reversed, even dependencies between different packages. Just amazing. I could also display over 100 classes on the same page including links because the graphism is really very advanced and the show hide option allows to only show the name of the class and not attributes and methods.

For more information on reverse java rengineering you can have a look at: - http://www.ejb3.org/jar_file_reverse/jar_file_reverse.html - http://www.forum-omondo.com/documentation_eclipseuml_2008/reverse/reverse/index.html

The only problem with EclipseUML is that you should use Eclipse and not Netbeans :-)

So what can i do ?I dont know if it is easy to move my project to eclipse..
Parhs
@Parhs Don't change tools. Enterprise Architect will work fine. You must be doing something wrong while Reverse Engineering. If you change tools you will have to steep of a learning curve.
Romain Hippeau
You don't need to move your project to Eclipse because you can take your java code, import it into Eclipse, then reverse your project. Finally you export images in png format for example. Once the image has been exported you just need to add this image file to your Netbeans project.You can use the 30 days evaluation build because no nagscreen and the UML model is given. The 30 days limitation only concern UML diagrams but not the generated java code, model and documentation. Really cool !!
A: 

Try http://netbeans.org/features/uml/ It supports Reverse Engineering of code. Of course all you are going to get is Class Diagrams.

Romain Hippeau
A: 

You can try Reverse Java. We have used it in our project and it created some fantastic UML diagrams for us from our Java application. Very easy to use and also has great features, like exporting the diagrams in PDF.

Rajesh Jadhav