Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating UML diagram from Scala sources [closed]

Is there any stand-alone tools (not Eclipse or Idea plugins) for generating class diagram from Scala source files?

like image 256
Andrey Kuznetsov Avatar asked Aug 29 '11 08:08

Andrey Kuznetsov


People also ask

Can you generate UML from code?

Umbrello is a free software tool that supports a code import feature that automatically generates UML Class diagrams from your imported code. Umbrello supports up to 20 languages between C, C++, Python, Javascript and Java.

How do you create a class diagram automatically?

To build a class diagram, all you have to do is launch the Smartdraw's Automatic Class Diagram extension and point it at your repository. Load your source code and choose which files you want to include in your diagram. Click "Build Diagram" and you're done.

How do I get the UML diagram in IntelliJ Community Edition?

In the Project tool window, right-click a package for which you want to create a diagram and select Diagrams | Show Diagram Ctrl+Alt+Shift+U ). In the list that opens, select Java Class Diagram. IntelliJ IDEA generates a UML diagram for classes and their dependencies.

Do you put overridden methods in UML?

UML notation allows you to specify overridden properties and operations. In many object-oriented programming languages, you can override a property or a method from the superclass. The overriding property/method in the subclass replaces the behavior of the property/method in the superclass.


2 Answers

I had exactly this problem and couldn't find anything that would quickly draw a hierarchy from some Scala source code so I ended up creating something to do it. I've put it on GitHub in case it's useful to anyone else:

https://github.com/mikeyhu/scaladiagrams

like image 138
MikeeMike Avatar answered Sep 18 '22 15:09

MikeeMike


try Acceleo see an example of using it with scala here

like image 43
Mouna Cheikhna Avatar answered Sep 20 '22 15:09

Mouna Cheikhna