How to Create class diagram from Code?

42,635

Solution 1

this program is very helpful (should work with no code changes)

The ObjectAid UML Explorer

http://www.objectaid.com/home

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.

Share:
42,635
Jim
Author by

Jim

Updated on July 09, 2022

Comments

  • Jim
    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
    Jim over 11 years
    Tried to copy paste the installation but did not seem to work
  • Nimrod007
    Nimrod007 over 11 years
    Ive used this in eclipse and it was working fine.
  • Nirmal Singh Raja Reegan
    Nirmal Singh Raja Reegan over 10 years
    This 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.