How to Create class diagram from Code?
Solution 1
this program is very helpful (should work with no code changes)
The ObjectAid UML Explorer
Solution 2
Automatic UML diagrams are not going to be very helpful from existing java source code. You are going to notice that the code is a big mess where the Single Responsibility Principle is not applied consistently. Take a look at inFusion to get some better views on your code. It can export a Famix model for use with Moose. That you can program to get the exact views you currently need.
Do you already have Sonar installed? It provides static views on the code.
Jim
Updated on July 09, 2022Comments
-
Jim almost 2 years
I have project under version control. I need to study code that is not mine. I am trying to find a better way than writing down the classes and their relationships in UML.
Is there a tool that does this automatically?
Note: The files are read-only so I can not use a tool that would have to modify them. I am working in Eclipse environment.
-
Jim over 11 yearsTried to copy paste the installation but did not seem to work
-
Nimrod007 over 11 yearsIve used this in eclipse and it was working fine.
-
Nirmal Singh Raja Reegan over 10 yearsThis works like a piece of cake. Really helpful. I downloaded the eclipse plugin as per the instructions given in the above website. I am able to generate Class diagram for my whole package classes with much ease.