Technical Support
Have technical issues or suggestions? Please contact Visual Paradigm Support Team.
Sales Support
Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.
Instant reverse is a process to produce UML class model from a given input of source code. With instant reverse, you can reverse a snap shot of your code-base to UML classes and form class diagram in further. By bringing code content into visual UML model, this helps programmers or software engineers to review an implementation, identify potential bugs or deficiency and look for possible improvements. Apart from this, developers may reverse a code library as UML classes, and construct model with them, like to reverse a generic collection framework and develop your own framework by extending the generic one. In this chapter, we will go through the instant reverse of Java.
![]() |
| The Instant Reverse dialog |
| NOTE: | You can reverse multiple source paths by adding them one after the other. You can add different kinds of source. For example, you can reverse a jar as well as a folder of source file at the same time. |
| NOTE: | By cancelling from forming diagram, it just means you do not want to form diagram with the reversed classes for the time being. You can still look for the classes in Model Explorer or Class Repository, and possibly form diagram later on manually. |
![]() |
| Overview of instant reverse dialog box |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Description of instant reverse dialog box |
Consider if you have a zip file that contains million of Java source file, like the file src.zip of Java Development Kit (JDK), and now you want to make the class java.util.Collection appear as UML class so that you can extend it when developing your own collection framework. Now, if you try to reverse the zip file it will take you a long time to complete the reverse due to the amount of classes (and relationships) is just too many. With on-demand reverse engineering, you will reverse the sources as indexes, and obtain an index tree in class repository. No actual UML classes will be reversed until you trigger the reverse manually. This reduces the processing time significantly.
To perform on-demand reverse engineering, make sure the option Reverse source on demand is checked in the Instant Reverse dialog box.
![]() |
| The option Reverse source on demand that appear in reverse dialog box |
When finished instant reverse, you can lookup the index tree in class repository. Then, right click on the class you want to reverse and select Reverse Resources to where Resources are the classes you have selected, and select either New Class Diagram or Class Repository from popup menu. Both options will result in reversing the selection to UML classes, while the option New Class Diagram will create a class diagram and place the classes in it.
![]() |
| Reversing a java source file from index tree |
| NOTE: | On-demand reverse engineering is only available for Java |
By the end of an instant reverse operation, you will be asked whether or not to form a class diagram with reversed UML classes. By selecting classes and configuring the way to present them, and confirm, a diagram will then be form.
![]() |
| The Instant Reverse Form Diagram dialog box |
| NOTE: | If you do not want VP-UML to ask you for forming diagram next time you perform instant reverse, uncheck Show this dialog after instant reverse. |
| NOTE: | The Form Diagram dialog box will only pop up when you were reversing source with on-demand turned off. If you have performed an on-demand reverse engineering, you need to form diagram manually. For details, read the previous section. |
Below is a description of this dialog, base on the tabs.
The classes listing in the tree are those reversed from your code-base. You must select at least one class in order to form a class diagram. Notice that forming diagram can be a costly operation if you have selected too many classes in forming diagram.
|
||||||||||||||||||||
| Description of form diagram options |
|
||||||||
| Description of presentation options |
By reverse engineering package diagram from source files, UML packages and the relationships in between will be produced.
![]() |
| The instant reverse dialog |
| Chapter 1. Instant Reverse | Table of Contents | 2. Reverse engineering of C++ header files |
Technical Support
Have technical issues or suggestions? Please contact Visual Paradigm Support Team.
Sales Support
Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.