Sunday, September 28, 2014

How to Create UML From Java Source

Instructions

    1

    Open the Eclipse software and the project you want to map in the UML modeler. Click the "File" menu and select "New Project." Choose "UML Project" to start the modeler.

    2

    Drag and drop the ".java" source code files in the left navigation panel to the center UML designer panel. The modeler automatically draws a class map for you, and it displays in the designer.

    3

    Click the "Drawing Tools" menu item and select the "Line" object. Use your mouse to draw lines between the different classes. For instance, connect the "User" class with the "Orders" class to indicate that users have a relationship with orders.

    4

    Click the "Save" button to save the changes. If you want to test the new UML, you can generate Java code from the UML design, which is called "forward engineering." Right-click one of the classes and select "Generate Java" to create the code from the UML.



No comments:

Post a Comment