Forming Diagram from Source Code
UML Class model can be generated from source code in IDE. And Class Diagram can eventually be formed from those Class models.
Here is a demonstration on how to transform source code into a Class Diagram with Eclipse IDE.
Assume there is a Java project consist of one package with 4 classes inside in an IDE.
Figure 1 - A Java project in Eclipse
Launch the SDE
Figure 2 - Launching SDE for Eclipse
Right-click on the project node or sources that you wish to transform into Class model, and select Update UML Model from the popup menu.
Figure 3 - Update UML Class model from Java source code
Switch to Model Tree from which you can see all the Class models that are generated from the chosen sources.
Figure 4 - Switching to Model Tree View
Right-click on the project node or Class models that you wish to form Class Diagram from them, and select Form Diagram > %form_option% from the popup menu.
Figure 5 - Form Class Diagram from existing Class models (or Packages)
A new Class Diagram is created.
Figure 6 - Resulting Class Diagram
Related Articles
Resources