USER DOCUMENTATION
Reverse
engineering Java2UML
Author: Elorri Benoit <elorri.benoit@gmail.com>
Contents
I.
PRESENTATION OF THE
PROJECT
Java2UML is a tool based on Eclipse RCP technology that transforms Java code to UML models (and corresponding Papyrus diagrams). This version generates class and activity diagrams.
The Package Explorer view
shows all the projects in your workspace and the files they contain. Right
click on your project (or package) and select the "Generate UML Model + Diagrams" option to generate the UML model
and the related diagrams. If you just want the UML model file, select the “Generate
UML Model” tab.

In either,
the following window will appear:

Here are
the different editable parameters:
-
Container : where the generated files will be
created
-
File name :
Name of the generated file
-
Model Name : Name of the model
-
Limit visibility : the minimum visibility (private, protected,
etc…) of the elements to reverse
-
Logging Level : verbosity settings for the logging mechanism
-
Model Imports : select UML models containing profile definitions
that are used in your code to avoid re-generating them
-
Activity Generation :
o None : The tool generates no activity diagrams
o Annotated only : The tool will generate only the
annotated diagrams
o All : The tool will generate all diagrams
When you
are done, click Finish to create the reverse file(s).
If you
choose to generate only the UML file, two files will be generated in the
package or project you selected: the log file and the model uml.

Double
click on the “.uml” to open it and you will obtain a
similar window to the following:

If you
choose to also generate the diagrams, four files will be generated in the
package or project you selected: the log file, the diagram files, and the model
uml.
Double
click on the file “.di” to open it and you will obtain the class diagrams of
your project, which will look like the following:

V1 of Java2UML
does not yet offer automatic layout capabilities: You will have to move the
elements using drag and drops in order to make the diagram usable.