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?
I'm using the latest version of IDEA Ultimate: 2017.3
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With