how to create class diagram based on .uml file [message #1062206] |
Thu, 06 June 2013 10:00  |
Eclipse User |
|
|
|
hi,
I discover .uml file from java project by modisco, then visualize 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 when I drag and drop a class. Do you think my viewpoint is reasonable? thank you.
regards
|
|
|
|
|
|
|
|
|
|
Re: how to create class diagram based on .uml file [message #1064339 is a reply to message #1064277] |
Tue, 18 June 2013 15:37   |
Eclipse User |
|
|
|
hello,
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.
very strange 
any idea?
poul
|
|
|
Re: how to create class diagram based on .uml file [message #1064418 is a reply to message #1064339] |
Wed, 19 June 2013 03:49   |
Eclipse User |
|
|
|
Hi,
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.
Regards,
Camille
|
|
|
|
Powered by
FUDForum. Page generated in 0.06887 seconds