Navigate to Source File after Instant Reverse
Reverse Engineering is often needed to analyze source code of an application for identifying the system’s components and their interrelationships at a higher level of abstraction. Reverse Engineering is much used to reverse source code from an old system into class models for further analysis and development.
Visual Paradigm’s products provide the Instant Reverse feature for reverse engineering sources into UML class models easily. In this release, Instant Reverse is enhanced to support ‘memorizing’ the source file for the reversed models. With this enhancement, you can navigate to the source file from a class model for better referencing between model and implementation.
Using Instant Reverse
This section lists the brief steps required to reverse engineer UML class model from given source code.
Select Tools > Instant Reverse > %SOURCE-TYPE%
from the main menu. In this article, we ‘ll take Java as the type of source code.
This shows the Instant Reverse
Specify the source file or folder. For reversing Java, click Add Source Folder
to select the folder that contain source files. You may reverse multiple source folders. For other programming languages, enter the path directly to the Path
If necessary, check Reverse source on demand
to indicate that the resource will not be reversed until it is being used. With the option Reverse source on demand
unchecked, models will be reversed from the resource to the project when the Instant Reverse process starts.
In this article, we’ll reverse source code on demand.
Click OK to proceed with the reverse.
From the Class Repository tree, select the Java Resources that you want the class models to be reversed from (multiple selection is allowed).
Right-click on the selection and select Reverse Resources to > New Class Diagram
from the popup menu to reverse the selected resources to the class repository and create a new class diagram for them.
This forms a new Class Diagram from the source code.
Opening Source file From Reversed Model
As the reference to source file is stored as file reference of model, we can take advantage of the reference indicator appear at the corner of a shape to open up a source file.
Move the mouse cursor over a class shape. This shows the reference indicator.
Press on it to popup the list of reference.
You’ll see the source file listed there.
Click on the source file to open it.
The source file is opened.
Click on the link below to download:
Visual Paradigm for UML Home
Business Process Visual ARCHITECT
DB Visual ARCHITECT
Download Free Community Edition of Visual Paradigm for UML
Download Business Process Visual ARCHITECT