Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » step by step guide to reverse engineering java code to uml
step by step guide to reverse engineering java code to uml [message #837047] Thu, 05 April 2012 03:57 Go to next message
Davide M is currently offline Davide M
Messages: 15
Registered: April 2012
Junior Member
Hi,

I am a beginner of modisco. It look like very interesting. I need to reverse engineering java code into uml. If I right understand this is possible using modisco and umltools or papyrus.

Because for me is not easy to setup the project, there is a step by step tutorial for this ? I have installed the plug-in but then I don't know what to do...

A further question. After some changes in the java code is possible to update the created uml diagram without losing some graphical informations (like class box width, height, x and y and so on ..)

If I need to customize the way composition is recognized ... where can I start?

Re: step by step guide to reverse engineering java code to uml [message #841436 is a reply to message #837047] Wed, 11 April 2012 05:52 Go to previous messageGo to next message
Fabien Giquel is currently offline Fabien Giquel
Messages: 134
Registered: July 2009
Senior Member
Hi,

thank you for your intereset in MoDisco tools.
No tutorial but the end user documentation is available : http://help.eclipse.org/indigo/index.jsp -> section MoDisco.

"Java -> uml" process involves two steps : "Java code -> Kdm model" and then "kdm model -> uml model".

In documentation you will have informations about "Java code -> Kdm model" process in "Java->Java 0.9->Java Discoverer" chapter. And also about "kdm model -> uml model" in "Infrastructure->kdm" chapter.

Basically the steps to create some .uml file from your java project are :
- select the xxx java project in eclipse explorer
- right click -> "MoDisco->Discoverers...->Discover KDM Code Model from java"
- set "serialize" to true in dialog opened
=> some xxx_kdm.xmi file is created in your java project
- select the xxx_kdm.xmi
- right click -> "MoDisco->Discoverers...->Discover UML Model"
=> some xxx.uml file has been created in you java project. You may edit it with default uml model editor. This .uml file contains only rough uml datas without graphical informations (diagrams, ..)
- you may import the xxx.uml in Papyrus or UMLTools (see tool dedicated documentation), and then create some diagrams from datas.


"After some changes in the java code is possible to update the created uml diagram without losing some graphical informations (like class box width, height, x and y and so on ..)" -> I think that is not possible until now because the process creates again the entire .uml file and so existing some diagrams model created with Papyrus and UMLTools will not be synchronized anymore. But you should give it a try.

"If I need to customize the way composition is recognized ... where can I start" -> I think the requires to modify the "kdm->uml" transformation which has been written using Eclipse ATL language. You may import or checkout from MoDisco SVN the "org.eclipse.modisco.kdm.uml2converter" plugin.

Hoping it will help you,
Fabien


----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
Re: step by step guide to reverse engineering java code to uml [message #841461 is a reply to message #837047] Wed, 11 April 2012 06:37 Go to previous message
Davide M is currently offline Davide M
Messages: 15
Registered: April 2012
Junior Member
Hi Fabien,

sound very helpful. I will try ...
Previous Topic:reverse engineering source code with method body
Next Topic:EMF api - constructing XMI from XMI
Goto Forum:
  


Current Time: Sun May 26 03:52:35 EDT 2013

Powered by FUDForum. Page generated in 0.01615 seconds