Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate UML from Java source

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?

P.S.
I am using Netbeans.

like image 802
GorillaApe Avatar asked May 30 '10 12:05

GorillaApe


People also ask

How can I automatically generate a UML diagram from a Java project?

In the Project tool window, right-click a package for which you want to create a diagram and select Diagrams | Show Diagram Ctrl+Alt+Shift+U ). In the list that opens, select Java Class Diagram. IntelliJ IDEA generates a UML diagram for classes and their dependencies.

Can Eclipse generate UML diagrams?

You can create UML project for any of your Java project in Eclipse.

How do I create a class diagram automatically?

To build a class diagram, all you have to do is launch the Smartdraw's Automatic Class Diagram extension and point it at your repository. Load your source code and choose which files you want to include in your diagram. Click "Build Diagram" and you're done.

Can IntelliJ generate class diagram?

IntelliJ IDEA Ultimate allows you to generate UML diagrams. You can use ⌥⇧⌘U (macOS) or Ctrl+Alt+Shift+U (Windows/Linux) to generate a UML diagram for your code which can help you and your team to read and understand the codebase.


2 Answers

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.

like image 76
Toni Menzel Avatar answered Oct 02 '22 22:10

Toni Menzel


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

like image 22
Dror Helper Avatar answered Oct 02 '22 20:10

Dror Helper