Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsstep by step guide to reverse engineering java code to uml
https://www.eclipse.org/forums/index.php/mv/msg/323226/837047/#msg_837047
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?
]]>Davide M2012-04-05T07:57:53-00:00Re: step by step guide to reverse engineering java code to uml
https://www.eclipse.org/forums/index.php/mv/msg/323226/841436/#msg_841436
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 Giquel2012-04-11T09:52:01-00:00Re: step by step guide to reverse engineering java code to uml
https://www.eclipse.org/forums/index.php/mv/msg/323226/841461/#msg_841461
sound very helpful. I will try ...]]>Davide M2012-04-11T10:37:32-00:00Re: step by step guide to reverse engineering java code to uml
https://www.eclipse.org/forums/index.php/mv/msg/323226/1062163/#msg_1062163
I discover .uml file from java project by modisco, then explore it by papyrus. Now I have a confusion that I can not view the entire class diagram corresponding to the .uml file and I can view class elements only by drag and drop. I want to know whether there is some method to visulize the entire class diagram. Even we must use papyrus to view the class diagram, I think the relationships between the classes existing in class diagrams should be viewed automatically. Do you think my viewpoint is reasonable? thank you.]]>Junfeng Zhao2013-06-06T10:30:30-00:00Re: step by step guide to reverse engineering java code to uml
https://www.eclipse.org/forums/index.php/mv/msg/323226/1064342/#msg_1064342
i have the same problem, because i only want to view all my classes from a java project inside papyrus.
did you find a solution yet?
best wishes
poul
]]>poul poulsen2013-06-18T19:50:25-00:00Re: step by step guide to reverse engineering java code to uml
https://www.eclipse.org/forums/index.php/mv/msg/323226/1064343/#msg_1064343
unfortunately not! Somethimes I use ObjectAid UML Explorer for Eclipse. Is free but not open source.
Davide.
]]>Davide M2013-06-18T19:53:46-00:00Re: step by step guide to reverse engineering java code to uml
https://www.eclipse.org/forums/index.php/mv/msg/323226/1064345/#msg_1064345
is it possible to do reverse engineering?
poul.
]]>poul poulsen2013-06-18T19:58:19-00:00Re: step by step guide to reverse engineering java code to uml
https://www.eclipse.org/forums/index.php/mv/msg/323226/1064349/#msg_1064349
what do you mean with reverse engineering? With ObjectAid is possible to have a UML diagram from java source code.
When you made some java code changes, then the UML diagram is refreshed.
]]>Davide M2013-06-18T20:12:58-00:00Re: step by step guide to reverse engineering java code to uml
https://www.eclipse.org/forums/index.php/mv/msg/323226/1064350/#msg_1064350
reverse engineering means to create java code from uml and uml diagramms from java code. the idea is, that the developer could change code or diagram -> both are always consistent.
unfortunately the combination Eclipse Modisco and Papyrus should provide this, but i read from problems to manage this.