How to add all subclasses of a given class to UML diagram?

I'm attempting to generate a UML diagram of all exceptions in a project.

I'm right-clicking on the class name, Diagrams => Show Diagram... and I get the class along with its ancestors:

How do I get all descendants as well? The only way I've found is right-click -> Show Implementations; but this forces me to do it for every single subclass, and there are a lot of them.

3 comments
Comment actions Permalink

Can't be done automatically: https://youtrack.jetbrains.com/issue/WI-22213 - feel free to vote for or comment a corresponding feature/issue in order to get notified about its updates.

0
Comment actions Permalink

Dmitry Tronin thank you, I was afraid that it would not be possible. Manually adding all implementations is a PITA for large class hierarchies.

0
Comment actions Permalink

One option is via right-click -> Show Implementations and add multiple items with `Shift + Arrow Down` and `Enter` - see https://www.jetbrains.com/help/idea/class-diagram.html#parents_and_implementations, point 3. (tested with IntelliJ IDEA version 2022.1.3)

1

Please sign in to leave a comment.