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?

1
  • 7
    Note: Diagrams > Show Diagram feature is not available in the free Community Edition
    – Andrejs
    Apr 16, 2016 at 18:44

1 Answer 1

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

7
  • 3
    Thank you a lot. I was confused how to expand nodes, now I see! Nov 29, 2013 at 11:27
  • 1
    Does anyone know, how to add this feature to Android Studio?
    – X-HuMan
    Sep 25, 2015 at 9:10
  • 8
    i cannot see Diagrams option on right clicking my packages, i have idea 2016.1.1 CE
    – Zavael
    Apr 21, 2016 at 6:51
  • Does you project support maven? Does it contain pom.xml? Then right click on your module or inside opened pom.xml file and you should see Diagrams in the menu. Apr 21, 2016 at 15:47
  • 13
    @Zavael This feature is only available for Ultimate edition. Sep 28, 2016 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.