Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build project-wide UML diagram in IntelliJ IDEA?

Trying to reverse-engineer existing project and it would be of great help to see how classes collaborate/depend on each other. Is there a way to build project-wide UML diagram (or class diagram of any kind) in IntelliJ IDEA using build-in functionallity or using some free plugin?

like image 998
Denis Kulagin Avatar asked Nov 29 '13 09:11

Denis Kulagin


People also ask

How do I use ZenUML in IntelliJ?

Right-click a Java method and click "Sequence Diagram" from the context menu; Or 2. Create a file with ". zen" as the file extension (e.g my-sequence. zen) and start writing ZenUML DSL.

How do you 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.


1 Answers

Right click on your package no matter which. Click Diagrams > Show Diagram (Ctrl+Alt+Shift+U). You will see your package in diagram editor.

Now:

  • You can expand (E) or collapse (C) all nodes.
  • You can show dependencies
  • You can show many attributes of nodes (constructors, methods, properties...)
  • You can drag&drop other packages from project explorer.

So, play with it a bit and i think you will achieve what you need.

This is how it could looks like: enter image description here

like image 56
Milan Baran Avatar answered Oct 27 '22 16:10

Milan Baran