New Features
Enhanced Features

On-demand Instant Reverse Engineering

Instant Reverse is enhanced to support Java 1.5 syntax. With this enhancement, Java source and class files, Java Archive (JAR) containing Java class files and ZIP file containing Java source, which contains Java 1.5 syntax can all be reverse engineering to UML class models. In addition, on-demand reverse engineering is introduced to address the performance issue arises when reverse engineering a huge code base. With this option, class model(s) would not be reversed from code until it is being used.

Adding Java Resources for Instant Reverse

  1. Select Tools > Instant Reverse > Java... from the main menu.
    menujavair.jpg

    OR Click on the Instant Reverse... button buttonir.jpg on the toolbar and then select Java... from the drop-down menu.
    toolbarjavair.jpg

  2. The Instant Reverse Options dialog box is displayed. From the dialog, you can add JAR files, folders of Java class files, ZIP files and folders of Java source files for reverse engineering.
    javairdialog.jpg

  3. You can add several Java Resources for reverse engineering.
    If necessary, select a resource and check Reverse source on demand to indicate that the resource will not be reversed until it is being used. With the Reverse source on demand option unchecked, concrete models will be reversed from the resource to the project when the Instant Reverse process starts.


  4. For the resources checked with Reverse source on demand, they will be added to the Java Resources folder under the Class Repository as pointers to the underlying source file(s).


Reverse engineer on selected Java Resources

After Java Resources are added, they are ready to become class models in the project. With the enhanced Instant Reverse feature, there are three ways for you to create class models from Java Resources. They are Reverse to Class Repository, Reverse to Diagram, and Reverse by drag-and-drop.

Reverse to Class Repository

  1. 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 > Class Repository from the popup menu to reverse the selected resources to the class repository.


  2. The Smart Reverse dialog box will appear to show the reverse progress of the selected resource (in this case the java.util package from JDK 1.5 source zip file and the sample java sources files of JTreeTable).
    irtorepositoryinprogress.jpg

  3. When the progress reaches 100%, the class models are added to the Class Repository tree.
    irtorepositorydone.jpg

Reverse to Diagram

  1. 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 “src” 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.


  2. The Smart Reverse dialog box will appear to show the reverse progress of the selected resource (in this case the sample java sources files on saxpath).


  3. After the reverse engineer process is completed, it will create diagram for the reversed models. The Create Diagram dialog box will appear to show the progress.


  4. A class diagram is automatically created. The selected class models that have just been reversed from the Java source files are added to the class diagram with the appropriate layout.


Reverse by drag-and-drop

  1. Create a new Class Diagram, drag the selected resources from the Class Repository tree and drop it onto the diagram.


  2. The class models of selected resources will be formed, and the shapes of the class models are placed on the diagram.


Related Articles

Resources

 
 
Last modified: 2006/04/04 17:13
 
 
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