File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Tool to generate class diagrams. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Tool to generate class diagrams." Watch "Tool to generate class diagrams." New topic

Tool to generate class diagrams.

Rohit Chaudhary

Joined: May 11, 2010
Posts: 8

While writing design document(tech specification doc) ,I need to create class diagrams for few classes which already exist and need some modifications.
Is there any tool/software available to generate class diagrams using existing classes??
Please suggest.

Jan Cumps

Joined: Dec 20, 2006
Posts: 2565

There are a number of tools, some of them stand alone, some plug into your development environment.

OCUP UML fundamental and ITIL foundation
Vlad Varnica
Ranch Hand

Joined: Dec 28, 2002
Posts: 40
You need first to reverse the java code then to display it into a class diagram.
Finally changing the diagram will also change the code using live code a model synchronization.

The only tool which is capable of doing it is EclipseUML Omondo because this tool is focused on Java and live code and model synchronization while other tools are more MDD oriented. I mean that you model then generate code but you don't upload java code into model and merge it with the diagram change.
A good example to read is:
Pallav Bora
Ranch Hand

Joined: Oct 13, 2009
Posts: 73
Rational Applicatio Developer / Rational Rose have similar capabilities.
Vlad Varnica
Ranch Hand

Joined: Dec 28, 2002
Posts: 40
No, it doesn't because in the RSA Java version you are live synchronized permanently and model is included as tag in your code !!
A good study has been published at :
Have a look then I am sure you will understand why EclipseUML is better
I agree. Here's the link:
subject: Tool to generate class diagrams.
It's not a secret anymore!