31

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?

Denis Kulagin
  • 8,472
  • 17
  • 60
  • 129

1 Answers1

51

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 look like: enter image description here

Pang
  • 9,564
  • 146
  • 81
  • 122
Milan Baran
  • 4,133
  • 2
  • 32
  • 49