Generate class Diagrams (tutorials and error resolution) using Rational rose reverse Engineering (Java) _java

Source: Internet
Author: User

Got the project framework engineering code But there is no UML diagram, then the method of call between the function of the flow is not easy to see, then how to produce a class diagram, the memory of the method has: 1.rose reverse engineering, 2.together

Rose has, together before the day before unloading, then use Rose, after groping to come to the following steps, know not to see, very rough:

1. Create a Rose project, choose the Java EE template,
2. As pictured


3. In the appearance of the interface, classpath add the source code directory, add support package, point ' ADD recursive ' point ' SELECT all ' ' point reverse ', complete without any prompts, point ' done ' end. Reverse engineering completed.

4 Reverse engineering will not automatically generate class diagram, but in logical view and component view inside the Java package structure will automatically generate the corresponding packages and classes, to follow their own requirements to create class diagrams. Below we will display all the classes under the selected package in the new class diagram:

Rose to create a new class DIAGRAM, and then drag the class package to the right, "ADD class" under ' QUERY ' on the order list, OK.

Rational Rose Reverse Engineering (Java) Common problem resolution:

1. When Rose reverse engineering, the attribute type behaves as follows: Logical View::java::lang::
Solution:
Menu->tools->java/j2ee->project
Select Fundamental Type Page
Remoe Common JDK Classes
ADD Common JDK Classes
OK, maybe it's Rose's bug.

2. Rose Reverse engineering, the error, generally is not referenced in the class of some packages

In the menu view-"Log selected can see the error message in Log window, the general may be unable to find the class, you tools-java/j2ee-project specification inside the project related items, such as classpath and so on
Solution:
Menu->tools->java/j2ee->project Specification
Select the class Path page to add the appropriate package

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.