You need to download:
2. Create your
project and copy the model
Click in the Package Explorer
> New > Project
the name of the project (e.g.
in the Project
on the Xerces UML 2.2 model that you have downloaded and extract it
into your workspace.
Select the root of your project (e.g.
don't immediately see the xerces_model.uml file in your Package
then just click on your project
You can notice that you have two model
files (e.g. the .uml file) at
the root of the project.
Each project automaticly creates a model file having the same name (e.g.
Model_Dynamic_Navigation.uml) which is the model.
This model is loaded in memory
when you first time launch a new Eclipse session.
We also have the file xerces_model.uml which the model that we have
3. Rename the
.uml file and upload your model
Delete the Model_Dynamic_Navigation file from your Package
Now rename the model xerces_model.uml in
to have the same name as the project.
It is important to have the same
name (e.g. project and .uml model)
because the project and the model are loaded in memory at Eclipse
Click on the .uml file >
Refactor > Rename
Enter the name of your model (e.g. same
name as your project) and click on the OK button.
You should now have the following
Don't forget that model and the project
are instantiated at the Eclipse start.
We therefore now need to switch off Eclipse and restart it again.
Select the Close and Open - Repair
All Diagrams menu
in the toolbar
Navigate inside the Xerces
To navigate in the model you can either use the Xmi Editor or
the UML editor.
Click on the Model_Dynamic_Navigation.uml
file > Open With > Omondo XMI 2.1 Editor
you open the XMI editor then you will see that packages, nested
packages and classifiers have been created in the model including all
Now we are going to use the UML editor
to visualize these classifiers in a class diagram.
to create a package
Click in the Package Explorer and selet src > New > Package
Enter the name of the Package (e.g.
to create a diagram and
gives a name to this diagram
: Click on the package (e.g. my Diagrams package in the Package
and create your class diagram by selecting myDiagrams package > New UML Diagram
> UML Class Diagram
and click on the finish buton.
Enter the name of your diagram
in the File name field (e.g.
Select classifiers from the XMI editor using the mouse and Drag and
inside your class diagram.
diagram is not really visible because it contains too many information.
We need to
dynamically create the needed view by hiding:
and operation compartments
Click on the diagram background (e.g.
be sure not to have selected any
element) Show/Hide >
Compartments > All Compartments
Remove the package information from your diagram by selecting the diagram background > Package Information
> No indication
For example if we want to see inheritances view we need to show all
inheritances included in this diagram and layout classiers with
diagram background inheritance >
Show all Inheritence > manual
Arrange all the diagram to have a clear
view by selecting the diagram background > Arrange Diagram >
Below is the new inheritance view.
navigation means that you can
change a diagram into another view.
need to save
your diagram and then create a new diagram.
The recommended option is to navigate
inside the model using contextual menus.
example let's now have a dependencies view diagram.
therefore need to hide
inheritance show dependencies and layout all classifiers and
Select the diagram contextual menu Inheritance
> Hide All Inheritance
and then Dependencies > show All
dependencies > Manual
Below is the dependencies view.
You can also navigate and see each classifier interaction by clicking
on the Classifier contextual menu.
Below is the autodetected model dependencies contextual menu
related to MouseEvent interface.
this information is only coming from the model because the project has
no java elements.
5. Model interchange wiht RSA 7
Use the same method to past and copy the model .uml file (more info see section 2
inside an Eclipse project and load the RSA 7 model
inside Eclipse 3.4. Note that the RSA model has been created using
Eclipse 3.2 and is composed by:
After the model has been created inside the Eclipse Ganymede project
open this model by selecting the .uml file in your package explorer
> Open With > Omondo XMI 2.1
Select elements directly in the model
and drag and drop inside the newly created diagram (See drag and drop
You will create the following diagrams inside EclipseUML 2008:
EclipseUML 2008 allows you to:
have reversed the Xerces
project and have immediately mapped all project information from Java
to UML 2.2.
a .uml file (e.g. your
model) from your java code you need to:
- rebuild dynamically graphical views from your model.
- dynamically navigate inside your model using the UML editor.
- natively (e.g. no
transformation needed) interchange models with other tools.
reverse will analyse all
your java project and detect inheritance, association and dependencies
at project level (e.g.
classifiers having inheritance in another project will be detected. For
example Interfaces will map with classes even if not in the same
- Import Xerces code inside your Eclipse
- Click on the src > Open Reverse UML > Deep Reverse / Merge
Please note that because of the heavy job to do the deep reverse will
require in order to map a 1 000 classes java project to UML
superstructure about 15 minutes.