Tips and Tricks
Smart Development Environment Topics

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.

  1. Assume there is a Java project consist of one package with 4 classes inside in an IDE.
    forming_diagram_from_source_code-1.jpg
    Figure 1 - A Java project in Eclipse
  2. Launch the SDE
    forming_diagram_from_source_code-2.jpg
    Figure 2 - Launching SDE for Eclipse
  3. 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.
    forming_diagram_from_source_code-3.jpg
    Figure 3 - Update UML Class model from Java source code
  4. Switch to Model Tree from which you can see all the Class models that are generated from the chosen sources.
    forming_diagram_from_source_code-4.jpg
    Figure 4 - Switching to Model Tree View
  5. 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.
    forming_diagram_from_source_code-5.jpg
    Figure 5 - Form Class Diagram from existing Class models (or Packages)
  6. A new Class Diagram is created.
    forming_diagram_from_source_code-6.jpg
    Figure 6 - Resulting Class Diagram

Related Articles

Resources

 
 
Last modified: 2005/12/01 01:33
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory