|Re: Reverse engineering from java code [message #878498 is a reply to message #878469]
||Tue, 29 May 2012 08:39
| Camille Letavernier
Registered: February 2011
How can I then use Papyrus to put my classes on a diagram?
There's currently no integrated tool to generate a Diagram from a UML Model. However, you can create most diagrams by drag & dropping elements from a UML Model.
First, you need to create a Papyrus model, associated to your uml file. To do so, select your *.uml file, then click on File > New > Papyrus Model. Select a Class Diagram (Or any other diagram), and select your Model as the root element of your new Papyrus model. This will initialize a Papyrus model related to your UML file. Then, you can open this model, and Drag-drop the elements you wish to display, from the ModelExplorer to the Class Diagram. However, it can be pretty difficult with big models, as each element has to be dropped manually.
And what about if I regenerate the .uml file? Will the diagram be corrupted?
This depends on the tool you're using the generate the *.uml file. If it takes care of keeping the same IDs, the Diagrams will work fine (ie. it will detect renamed or deleted elements). However, if the tool creates a whole new uml file, then you'll have to create a new diagram.
Powered by FUDForum
. Page generated in 0.02396 seconds