UML Model Reverse Engineering



UML model reverse engineering is a complex processus.It provides not only a byte-code reverse engineering engine, but also an migration capability from Free edition to Enterprise edition. In terms of data flow, it read from :

  • UML Repository created by EclipseUML free edition: it parts of the migration processus
  • Existing UML Model stored as annotation in Java source
  • the UML Model produced by bytecode engine

And finally, the results are stored back as annotation into Java sources.

The Reverse engineering processus consists of three steps:

  1. Setup preferences
  2. Launch Reverse Engineering
  3. Select model sources

1. Setup Preferences

First, it is very important to set up some Preferences in Eclipse:

These preferences influence the Reverse engineering results.

2. Launch Reverse Engineering

There are two ways to invoke UML Model reverse engineering:

  1. Automatical Reverse Engineering
  2. Explicit Reverse Engineering

2.1 Automatical Reverse Engineering

When you create the first diagram in a Java project, the Reverse Engineering is started automatically. There are two possibilities to create a class diagram: using UML new wizard or calling short cut menu.For the second solution, you need select one package in the Package explorer and right click on the mouse to call the context menu UML>Class diagram editor as following:

2.2 Explicit Reverse Engineering

It is also possible to perform the Reverse Engineering whenever you want by selecting the Java Project in Package explorer and then right click to call the contexte menu: UML>Reverse engineering:

3. Model Source Options

The Reverse Engineering has different options if the Java project contains already UML models from EclipseUML free edition.

3.1 Reverse engineering without migration

If the Java project has never touched by EclipseUML free edition, when you Reverse engineering is activated, you will get following option dialog:

It is possible to change some options to select the model sources.

3.2 Reverse with migration

If the project contains the UML repository created within EclipseUML free edition, a warning dialog will alarm that the Reverse engineering is irreversible.

If you confirm the operation, you will get following option dialog:

 

 
Last update Fri Mar 05 14:18:13 CEST 2004 All text, graphics © 2002-2004 by Omondo