|Re: how to create class diagram based on .uml file [message #1064339 is a reply to message #1064277]
||Tue, 18 June 2013 19:37
| poul poulsen
Registered: June 2013
in your linked discussion you wrote the following:
"After that, the new .di is open, and you can go to Model Explorer view, and there you have all the elements of the UML model. As I told you I want to work with class diagrams, so I created one, and then DnD classes to it.
I am still testing it ... but it seems that it works."
for me this is not working to the end.
i can see my .di file, thats ok.
but why should i create classes with DnD?
i want to see my java claases from the existing java project.
how could i do that?
if i right click on a class, papyrus answers not possible and if i right click on the element below root model then create a new class diagram, it is always empty.
|Re: how to create class diagram based on .uml file [message #1064418 is a reply to message #1064339]
||Wed, 19 June 2013 07:49
| Camille Letavernier
Registered: February 2011
A diagram is a specific View on a model. As such, it does not need to display everything: it displays only what you want to show/see. This means that the default choice in Papyrus was to make all the diagrams empty by default. You need to select the elements you want to actually display. To do that, you need to select the elements from the Model Explorer, and drop them to the diagram (Which will display them in that diagram).
For more comprehensive diagrams, there is an additional/experimental tool in Papyrus (Help > Install Papyrus Additional Components > Diagram Generation). You can create a Diagram Template to specifiy what needs to be displayed in a Diagram (e.g. For each Package, create a Class diagram, display all Classes and Interfaces / For each Class and Interface, display all operations and attributes).
Creating the template takes some time, but once it is done, you can automatically generate and populate all your diagrams from your semantic model.
Powered by FUDForum
. Page generated in 0.03166 seconds