How to convert the code of existing project to UML diagrams?

Hi All,Do any one suggest, How to convert the code of existing project to UML diagrams? ( like Class Diagrams etc.)?Venkat
[143 byte] By [Venkatvns] at [2007-9-30 20:23:46]
# 1
Rational Rose comes to mind, but they are not free. I think there are a few floating around in the internet which is free. Just do a search on google.
chungkp at 2007-7-7 1:08:24 > top of Java-index,Other Topics,Algorithms...
# 2
Now I remember, ESSModel is a UML reversing tool from sourceforge and it is free!
chungkp at 2007-7-7 1:08:24 > top of Java-index,Other Topics,Algorithms...
# 3
TogetherJ (from TogetherSoft I think) is very good at this sort of thing - extremely comprehensive support for UML.It's quite slow and quite expensive, though.
KPSeal at 2007-7-7 1:08:24 > top of Java-index,Other Topics,Algorithms...
# 4

If you want to do it yourself, you could :

parse all the source code with your own written doclet.

gather all the dependancy data with a tool like jdepends to get class relations

use a tool like MDR (netbeans) to create XMI 2.0 diagrams from all the info you

have collected and spit out diagrams.

use a free version of a poseidon to view the diagrams.

(I think people are wiser in investing in a tool instead, but I am having fun trying something like this)

My question to you is what information is important about the classes that you need to know ?

How do you identify the important classes ?

How can you identify the main use of the program from a static analysis ?

My idea about identifying important classes would be that they should be on a dependancy path

that includes links to most other classes - like a freeway that has exits to minor roads.

I think also to get a better idea about the code you need a dynamic model perhaps developed from

a run-time analysis gathered from logging which methods and classes are used when performing

the usual functions when executing the code.

Good luck whatever you decide to do.

David_Scurrah at 2007-7-7 1:08:24 > top of Java-index,Other Topics,Algorithms...
# 5
JBuilder has this feature .
aznsoft at 2007-7-7 1:08:24 > top of Java-index,Other Topics,Algorithms...
# 6
As does the commercial version of Poseidon But I was offering an algorithmic sort of answer instead of just a tool one. :)I might have a look at what JBuilder does though !
David_Scurrah at 2007-7-7 1:08:24 > top of Java-index,Other Topics,Algorithms...
# 7

Hi KPSeal,

sorry for posting here, but if you are watching this thread please have a look at the old thread

http://forum.java.sun.com/thread.jspa?threadID=257492&start=15&tstart=0

where I have added a question to your TableRowHeightHandler solution.

tom

nadenn at 2007-7-7 1:08:24 > top of Java-index,Other Topics,Algorithms...
# 8
http://visual-paradigm.com/You can convert from code into diagrams using trial version :)
AlexanderYerenkow at 2007-7-7 1:08:24 > top of Java-index,Other Topics,Algorithms...
# 9
Eclipse has a number of UML-generating plug-ins. Aside from Rose, most of the UML reverse-engineering programs allow the generation of class diagrams. However, you are usually on your own when generating sequence diagrams.- Saish
Saish at 2007-7-7 1:08:24 > top of Java-index,Other Topics,Algorithms...