https://kotlinlang.org logo
Title
i

igor.wojda

04/03/2023, 10:21 AM
I am using InteliJ IDEA
Show Diagram
action on the base class, but I see only single class. Is there any way to see all of the child classes as well? I imaging there is a swich to turn on, a bug in IDE 🤔 BTW Is there any other tool to draw nice class hierarchy?
v

Vampire

04/03/2023, 10:29 AM
iirc right click on that node and tell it to add the children
m

Marit van Dijk

04/03/2023, 12:00 PM
Try right-clicking the project in the Project tool window and then selecting Show Diagram.
i

igor.wojda

04/03/2023, 1:24 PM
@Vampire Is there an option to all all children at once? @Marit van Dijk This is wired sometimes works, fine other times I see bunch of module dependenciesŚ instead of classes nested in the given package
I don't get this Idea approach - I really just need quick access to class diagram (in given context) to facilitate development and PR review
v

Vampire

04/03/2023, 1:52 PM
The approach is, that it shows the class and its ancestors (at least for Java classes). And if you do right click and select "Show implementations", it gives you a list of all descendents and you can select which to add to the diagram. I assume it is the same for Kotlin files.
Yes, works the same for me with Kotlin classes
w

Wout Werkman

04/03/2023, 2:18 PM
For me (on MacOS) it works to press select the node, press
cmd+B
, then
cmd+A
, then
enter
v

Vampire

04/03/2023, 2:20 PM
Yes, that's exactly what I described, just with Keyboard shortcuts 🙂
i

igor.wojda

04/03/2023, 4:14 PM
thx @Wout Werkman - I didn't realised that I can ad all of them at once. Even better they stick after repenting the diagram. BTW @Vampire similar point, but it was not clear for me that I can add all of them easily 😉