Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA Ultimate: how to build UML diagram for the whole project?

I'm getting started with IDEA and new project. I want to see the whole project's class diagram. I searched, and it says on SO that I have to

click Diagrams > Show Diagram (Ctrl+Alt+Shift+U). You will see your package in diagram editor.

but I only see one box for the whole module. But I want to see all classes, relationship between them etc. How do I do this?

enter image description here

I'm using the latest version of IDEA Ultimate: 2017.3

like image 730
avs099 Avatar asked Dec 11 '17 16:12

avs099


People also ask

How use UML diagram in IntelliJ?

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.

How do I enable sequence diagram in IntelliJ?

Open your project in IntelliJ, click on: File → Settings → Plugins and type SequenceDiagram in the search field. There are a few more plugins that can generate diagrams, but I chose SequenceDiagram due to its popularity and constant updates. Install the plugin and update your IDE.


1 Answers

When invoked on the whole Project - it builds the diagram for the modules, not for classes. To have the Java class diagram invoke show diagram action on a specific package or if you want to see all the packages and classes in project invoke it on a module's source root. To expand a package (show it's content), select it and invoke "Expand" (E default shortcut) action.

like image 145
Andrey Avatar answered Oct 23 '22 04:10

Andrey