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