SENG 426 SENG 426 Tool Presentation Tool Presentation ~ Prepared by Sherif Saad ~ Spring 2009 ~ 1
Reverse Engineering Reverse Engineering • Go to Tools and select Java/J2EE reverse engineering ~ Prepared by Sherif Saad ~ Spring 2009 2 ~
Add your Project Add your Project • From the Java reverse engineering dialog Click on edit class path ~ Prepared by Sherif Saad ~ Spring 2009 3 ~
Choose the Project Src Choose the Project Src • From the Project Specification dialog Click on insert new ~ Prepared by Sherif Saad ~ Spring 2009 4 ~
Choose the Project Src Choose the Project Src • From the Project Specification dialog Click on insert new ~ Prepared by Sherif Saad ~ Spring 2009 5 ~
Choose the source type Choose the source type • From the Add to Classpath dialog Click on Directory ~ Prepared by Sherif Saad ~ Spring 2009 6 ~
Select JWP src directory Select JWP src directory • Browse your directories and select the JWP src directory, and then press OK 7
Select Your Package Select Your Package • From the JWP src directory select the package you want to reverse engineering it • For example select JWP package and then press Add ALL 8
Start Reverse Engineering Start Reverse Engineering • Now after adding the java classes click on Select ALL and then click on Reverse. • When the process complete click on Done 9
Create UML Diagrams Create UML Diagrams • Go to rational rose main window , then under the logical view you should see your java code within its packaged hierarchy. 10
Create Class Diagram Create Class Diagram • From their you can drag the classes into a new class diagram to see how they are connected. See the image below. 11
Lab Links Lab Links • Check out the following URLs for more info on Rose: – Short videos on creating diagrams: – http://homepages.uel.ac.uk/D.Bowden/
THANKS THANKS 13
Recommend
More recommend