Code2UML is a open-source tool for creating UML diagrams from pseudo-code (syntax is pretty similar to java). It lets you focus more on your projects structure instead of thinking about designing diagrams and UML Standards.
+++ Version 1.1 is now out, adding support for implementing interfaces and extending classes! For more information see here.
If you want to try it out yourself, you can either just donwload and run a compiled version or donwload the source code and compile it yourself.
- If you havent already download the latest Java SE version here and install it.
- Select a released Version of the project from the releases tab and download the zip-folder with the versions name.
- Open the folder on your computer and double click the
.jar named
Code2UML + version name, for example :Code2UMLv.1.0.jar
. - If it doesnt work, open your command prompt or shell of choice and navigate to the folder where the
.jar
file is located. Then runjava -jar filename.jar
putting the name of the.jar
file asfilename
.
-
After running the programm, a blank editor window pops up, where you can write your uml code.
a blank editor window -
Type in:
class HelloWorld{
private string message;
public bool isHappy;
int GetSomeInt();
public void DoSomething();
}
-
In the upper left corner click on
file
and thenrun
.
editor file -> run -
Now a new window should pop up, containing a UML diagram of your class. Congrats, you created your first UML diagram!
created uml diagram -
(Optionally) you can now save your uml script clicking on
file
and thensave as
. A window will show up where you can specify where you want to save the file. If you succesfulle saved your file you can always open it up again usingfile
and thenopen
. (It doesnt really matter if you save the file as a.txt
or something else but I recommend saving it as a.uml
file so you always know that it is more than just a text file.) -
For more information see documentation{coming soon}
- converting java-like code and into clean UML diagrams
- currently supporting class, interface, member and method declarations
- extending and implementing classes is also supported
- handling and displaying errors containing error line number
- saving and loading uml code
- function to convert real language projects into uml diagrams
- export funtion for UML diagrams