|
|
Re: Initialize papyrus diagram from a UML file [message #820701 is a reply to message #819803] |
Wed, 14 March 2012 13:12 |
|
Yes you are right.
On Eclipse, I use the "Project Explorer" view.
On the Papyrus User Guide, they use the "Model Explorer" view.
So, I need to use the "Model Explorer" view to get this context menu and the "Initialize papyrus diagram" item.
If I open the .uml file from the "Project Explorer", I see "No Model Available" in the "Model Explorer" view.
If I open the .di file from the "Project Explorer", I see the model tree in the "Model Explorer" view.
But I have not exactly the same content as in the Papyrus User Guide.
On the Papyrus User Guide, they can explore the files and they have the context menu and the "Initialize papyrus diagram" item.
I see we can customize the "Model Explorer", in "Customize View..." but "Filters" are empty and "Content" contains only these 2 items:
-UML Model Contents
-Model Contents
It's probably the reason why I can't explore the files and have the "Initialize papyrus diagram" item from the context menu.
On the Papyrus User Guide there are more options to customize :
-Filters
|--*.class resources
|--...
-Content
|--UML Logical View
|--Resources
How can I get all of these customize options?
Thank you.
|
|
|
|
|
Re: Initialize papyrus diagram from a UML file [message #825806 is a reply to message #825525] |
Wed, 21 March 2012 09:22 |
|
No, I am unable to initialize a diagram from an UML file with Papyrus
This feature works only on UML2 Tools (Papyrus and TOPCASED don't let me generate the diagram). The problem is that UML2 Tools doesn't support reply messages in sequence diagrams.
If you find a way to do this with Papyrus, don't forget to contact me
|
|
|
Re: Initialize papyrus diagram from a UML file [message #842698 is a reply to message #821336] |
Thu, 12 April 2012 14:41 |
|
Hi,
I am also trying with this ... but I dont even have the options that you showed in the print screens you sent, for the package explorer for example, I dont have the options initialize class diagram / use case diagram ... etc. They belong to Papyrus, right?
perhaps an instalation problem? different versions or sth?
thnk you in advance
|
|
|
Re: Initialize papyrus diagram from an UML file [message #843598 is a reply to message #819764] |
Fri, 13 April 2012 07:27 |
|
No, the "Initialize class diagram", "Initialize use case diagram", ... options are UML2 Tools options.
But Papyrus should come with the "Initialize papyrus diagram" option (as we can see on the tutorial screenshots). However, this option isn't available when I install Papyrus...
For the moment UML2 Tools is the only modeling tool that can correctly generate an UML diagram from an UML model (Papyrus and TOPCASED failed to do this).
|
|
|
Re: Initialize papyrus diagram from an UML file [message #843902 is a reply to message #843598] |
Fri, 13 April 2012 13:33 |
|
ah ok, thank you
but... I didn't consider UML2Tools because it is discontinued, isn't it?
I continued trying and I found a workaround:
If you are in the package explorer and select your UML file, and right-click it, go to new -> Papyrus Model. Select UML, and in my case I want to work with class diagrams.
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.
I am using the night build of a couple of days ago
Hope it helps, and I hope it works every day even better
|
|
|
Re: Initialize papyrus diagram from an UML file [message #844714 is a reply to message #843902] |
Sat, 14 April 2012 09:09 |
|
I don't know if it is discontinued (my UML2 Tools version is 0.10.0 from 2011 so it is not so old) but it's true that some features like the "reply message" in the "sequence diagram" are not supported yet... This feature works on Papyrus and Topcased, so UML2 Tools has some important missing features... So we can suppose that UML2 Tools is discontinued...
I follow your instructions and it's true we can see in the Model Explorer view, all the elements of the UML Model. But I can't Drag and Drop the elements in the diagram because the window is grey... This window should be white to be allowed to DnD into it...
Anyway thank you for this tip, maybe it can help to find a correct solution.
[Updated on: Sat, 14 April 2012 09:10] Report message to a moderator
|
|
|
|
Re: Initialize papyrus diagram from an UML file [message #846613 is a reply to message #845043] |
Mon, 16 April 2012 08:42 |
|
In fact, I do these steps :
1)select the UML file
2)right-click it
3)go to New -> Papyrus Model
4)select UML
5)I have not chosen to work with class diagrams, instead of, I just click "next" then "finish"
If I chose "UML Class Diagram" then I click on "next" then "finish", at the step 5), the wizard window doesn't close and stay open!
So, I prefer to don't choose "UML Class Diagram" but my diagram window is grey... I can't DnD.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02490 seconds