13

I'm looking for a tool, Intellij Idea plugin, or whatever that is able to generate UML class diagram from Kotlin source files.

Intellij Idea 15's "Show diagram..." tool only works for .java files.

Google doesn't help, but I still hope there is a chance to find a tool for this.

LordScone
  • 3,207
  • 2
  • 18
  • 24
  • If what you need is not implemented as an IDEA plugin, then I doubt it is implemented in any other way. Kotlin is a young language, not even out of beta, and its syntax can still change a bit. In order to generate UML from source files, you'd need to parse the language syntax, so such a tool isn't likely to be developed until 1.0 release. – gvlasov Nov 09 '15 at 05:30
  • don't Java tools work? I believe that Java reflection should understand Kotlin's classes as usual. – voddan Nov 09 '15 at 07:56
  • Suseika: this is what I was afraid of. – LordScone Nov 09 '15 at 08:04
  • Vodden: I don't know about any tool that generates UML from class files, but if you know one, let me know and I'll give it a try. I think that would work. – LordScone Nov 09 '15 at 08:06

1 Answers1

8

Actually it works but with limitations: you can click only on a package in the project tree and click "Show Diagram...". Also it generates diagram from the Java point of view (shows Java's signatures and facade classes)

enter image description here

Sergey Mashkov
  • 4,630
  • 1
  • 27
  • 24
  • 2
    When do you plan to support this feature fully with Kotlin? – LordScone Nov 12 '15 at 13:52
  • 1
    As far as I know there are no plans for now as everybody is focused on the release and the language finalization. So I wouldn't expect full support soon however I believe there will nothing bad to open related tickets in the tracker at https://youtrack.jetbrains.com/issues/KT – Sergey Mashkov Nov 16 '15 at 11:29