Tips and Tricks
Code Engineering Topics

Reverse Engineering using Instant Reverse

Reverse Engineering is often needed to analyze source codes of an application for identifying the system’s components and their interrelationships at a higher level of abstraction. Reverse Engineering is used mostly to reverse source codes from an old system into class models for further analysis and development.

VP’s products provide the Instant Reverse feature for reverse engineering sources into UML class models easily. There are many source files supported by the Instant Reverse such as Java Source, Java Classes, C++ Source, .NET dll or exe files, CORBA IDL Source, ADA 9x Source, XML, XML Schema, JDBC and Hibernate.

Prepare a set of Java source files. For example, there are 4 java source files in the ShoppingCartServlets directory.

From the VP-UML menu, select Tools → Instant Reverse → Instant Reverse....

OR Click on the Instant Reverse... button from the toolbar.

The Instant Reverse Options dialog box is displayed. Choose the language from the dropdown box at the top of the dialog box and click Add Source Folder to select the source files.

Choose the folder and select OK. The java files will appear in the dialog box. Click OK again to continue.

The 4 java files are now shown in the class repository pane. Select the four files and right click on them, selecting Reverse “Resources” to > Class Repository.

There are now four newly reversed classes in the Class Repository tree.

Select all the reversed classes in the Class Repository, right-click and select Form Diagram> Navigation from the pop-up menu.

A class diagram is automatically created. The selected class models that have just been reversed from the Java files are automatically added to the class diagram in the navigation layout.

Related Articles

Resources

 
 
Last modified: 2007/08/13 03:19
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory