Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Generating and modifying uml class diagram
Generating and modifying uml class diagram [message #575272] Sat, 12 June 2010 16:01 Go to next message
Eclipse user is currently offline Eclipse userFriend
Messages: 6
Registered: June 2010
Junior Member
I have to create a plugin that generates a class diagram from a java project and then modify programmatically this diagram by adding shapes (like arrows or circles) and/or new classes.Could you please give me some advice on which frameworks or tools I could use and maybe suggest some relevant documentation?

Thanks in advance
Re: Generating and modifying uml class diagram [message #575291 is a reply to message #575272] Mon, 14 June 2010 09:35 Go to previous messageGo to next message
Fabien Giquel is currently offline Fabien GiquelFriend
Messages: 147
Registered: July 2009
Senior Member
Hi,

we usually distinguish two steps in such a process :

- getting a UML model wich contains information about your java programs (package, classes declarations ...). With Eclipse UML framework it will be serialized in a .uml file.
- getting a graphical view of the UML informations (diagram with arrows, boxes...)

-> MoDisco targets the first step.
-> Both UMLTools and Papyrus (Eclipse UML2 modeling tools, see http://www.eclipse.org/modeling/mdt/), can initialize diagrams based on .uml model file. For getting some api for programmatically initialize/modify the diagrams, i propose you to have a look in the UML2Tools or Papyrus forums.

About the first step, MoDisco proposes Components for Java->UML M2M transformation (using KDM intermediate metamodel) adressing Class diagrams. You will find documentation at
Java-> KDM : http://wiki.eclipse.org/MoDisco/Components/Java/Documentatio n/0.8#Java_Discoverer
KDM -> UML : http://wiki.eclipse.org/MoDisco/KDM/Documentation#UMLConvert er

The both two actions can be called programmatically. For examples, you should look at tests projects from our svn :
- org.eclipse.gmt.modisco.java.discoverer.tests (SimpleBlackBoxDiscoverer)
- org.eclipse.gmt.modisco.kdm.uml2converter.tests

For installing MoDisco :
- install "Eclipse Helios Modeling Tools" bundle from http://www.eclipse.org/downloads/index-helios.php
- in your workbench, use the "Install Modling Components" button and select MoDisco

Regards.
--
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------


----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
rue Nina Simone
44000 NANTES
----------------------------------------------------
Re: Generating and modifying uml class diagram [message #575305 is a reply to message #575272] Mon, 14 June 2010 16:18 Go to previous message
Eclipse user is currently offline Eclipse userFriend
Messages: 6
Registered: June 2010
Junior Member
Thanks a lot for your help Fabien!
Previous Topic:Generating and modifying uml class diagram
Next Topic:MoDisco 0.8.0 in Eclipse Helios!
Goto Forum:
  


Current Time: Fri Mar 29 08:48:26 GMT 2024

Powered by FUDForum. Page generated in 0.04920 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top