Automatic generation of class diagrams from source code with Enterprise Architect

Source: Internet
Author: User
/*
References: Thanks to the resource-sharing person.
Info: Simple record how to generate class diagram from the source code through the tool, easy to analyze the structure, it is very useful for source reading.
*/

See Open source code to learn, I would like to find a code to check the convenient point of the tool, easy to clear the code level, the results found the Enterprise Architect This good tool, trial down is very convenient. Functional and rational Rose is a kind of general, the use is very wide, many I do not understand, know can draw various UML diagram, support of the source language type contains the following figure, the following is a simple record with Enterprise Architect from a complete open source code generated from a class diagram.



1, Project---New project to establish the project, will pop up the configuration box, select the graphics to be included, just analyze the code structure, select the ' Class ' category diagram (as shown below), complete the project establishment.



2. In the Project browser window on the right, right-click on the directory to select Code Engineering---Import source directory (see figure below). After selecting the source directory and language type, "OK" starts importing, The import process generates the diagram types that are included in the project configuration, and the default is to generate the logical diagram for the cell as a namespace.



3, after the import is completed, in the Project browser window, the source directory, you can choose to open the generated class diagram (as shown below).


4, generated by the diagram, you can diagram---Copy image from the menu to the other documents for processing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.