Launching the reverse command

Reversing existing classes

Modelio Java Designer provides the user with the possibility of updating a class' modeling within a project. To do this, select “Update model from sources if necessary” on the class.

This command can also be launched on a package, updating all its child classes in the model.

Launching the reverse wizard

To launch the Reverse wizard, please carry out the following steps:

  • Right-click on the root package to display its context menu.

  • Select the command “Java Designer/Reverse Java application from sources” to reverse a source file into the project.

Selecting the files to be reversed

In the first window of the wizard, the path to the application to be reversed into the project should be entered. The central part of the page updates to display the directory’s content, in order to select the elements to reverse into the project.

Select the elements you wish to reverse by checking the associated tickbox.

The “Granularity” field is used to select the desired reversal level.

Three levels are available:

  • Simple structural

  • Complete structural

  • Complete reverse (this reverse level is only available when reversing from sources)

For further details, please see “Three reverse levels”.

Click on the “Next” button to proceed to the next step.

Reminder of the project’s current libraries

The next window of the Wizard shows the current classpath of your project, as defined in the java module’s parameter. It is not modifiable here, but through classpath edition.

A jar can be ignored in the reverse by unchecking the associated tickbox.

Click on the “Next” button to proceed to the next step.

Selecting the application libraries

The final window of the Wizard is used to specify the classpath of the application to be reversed.

Note: All libraries specified here won’t be added to your project’s configuration, but will be considered accessible during the reverse phase.

Use the “Add” and “Remove” buttons to add or remove libraries (jar files), and the arrows to reorder them.

To go back to the previous step, click on the “Previous” button.

To launch the reverse operation, click on the “Reverse” button.

Note: A log file is automatically generated in the module’s installation directory (< Project_Path >/mda/JavaDesigner/reverse-log.html). This log file will be overwritten each time a new reverse is launched.

reverse3.png (22 KB) integ modelio, 21 May 2013 17:43

fig13.png (35.9 KB) integ modelio, 21 May 2013 17:43

reverse1.png (23.3 KB) integ modelio, 21 May 2013 17:43

reverse2.png (19.7 KB) integ modelio, 21 May 2013 17:43

fig17.png (22.7 KB) integ modelio, 21 May 2013 17:43