How can I generate UML diagrams (especially sequence diagrams) from existing Java 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.
You can create UML project for any of your Java project in Eclipse.
Is what I used. It is easily installed from the repository:
Name: ObjectAid UML Explorer Location: http://www.objectaid.com/update/current
And produces quite nice UML diagrams:
The ObjectAid UML Explorer is different from other UML tools. It uses the UML notation to show a graphical representation of existing code that is as accurate and up-to-date as your text editor, while being very easy to use. Several unique features make this possible:
- Your source code and libraries are the model that is displayed, they are not reverse engineered into a different format.
- If you update your code in Eclipse, your diagram is updated as well; there is no need to reverse engineer source code.
- Refactoring updates your diagram as well as your source code. When you rename a field or move a class, your diagram simply reflects the changes without going out of sync.
- All diagrams in your Eclipse workspace are updated with refactoring changes as appropriate. If necessary, they are checked out of your version control system.
- Diagrams are fully integrated into the Eclipse IDE. You can drag Java classes from any other view onto the diagram, and diagram-related information is shown in other views wherever applicable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With