Home » Eclipse Projects » Papyrus for Real Time » Can´t create a diagram for a package(Papyrus RT is disabling the "New Diagram" menu option for packages)
| | |
Re: Can´t create a diagram for a package [message #1837771 is a reply to message #1837527] |
Fri, 05 February 2021 20:35 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Ernesto Posse![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=eposse%40gmail.com) Messages: 438 Registered: March 2011 |
Senior Member |
|
|
Well, it works for me. After importing your project, I did as I described in the original message, right-click on the root, then enabled "Switch Architecture Viewpoints > Advanced UML-RT Architecture Viewpoint" (and leave the Basic viewpoint enabled as well), and then I can create both class diagrams and package diagrams, as the screenshot below shows. There does seem to be a bug in that the palette in package diagrams is empty, but I can drag and drop packages from the Model Explorer into the diagram.
![index.php/fa/39944/0/](index.php/fa/39944/0/)
I noticed that you project doesn't include any of the required model libraries. note that when creating a project, you should select an appropriate template in the New Papyrus Wizard: (see the screenshot)
1) Ensure you select the UML-RT ADL Architecture Context and both the Basic and Advanced Architecture viewpoints. Click [Next]
![index.php/fa/39947/0/](index.php/fa/39947/0/)
2) Select the name and location. Click [Next]
![index.php/fa/39948/0/](index.php/fa/39948/0/)
3) Unfold the selection drop-down list under "You can load a template", and select one of these. I strongly recommend the last one "UML-RT for C++", if you plan to generate code. Click [Finish].
![index.php/fa/39949/0/](index.php/fa/39949/0/)
Then you can see in the Model Explorer that the model includes the UML-RT Runtime System Library (UML-RT RTS) and UML-RT AnsiCLibrary.
![index.php/fa/39950/0/](index.php/fa/39950/0/)
It will also support additional stereotypes for more customized C++ code generation.
And if you select the root element, in the Properties View, under "Profiles", you will see the UML-RT profile (structure), the UML-RT State Machines profile, and the RtCppProperties profile.
You are unable to see the New State Machine option because your model didn't have the UML-RT State Machines profile.
If you don't want to create a new model, you can add it by selecting the root element, in the Properties View, under "Profiles", click the "Apply registered profile" button in the top right (you might have to extend the right margin of the Properties view; it looks like a little plug, to the right of the red [x] button), and then select the UML-RT State Machines profile and click [OK] and save.
Once you have the UML-RT State Machines profile, editing transition triggers should work.
Please note that both capsule structure diagrams and state machine diagrams in Papyrus RT are not the same as those in plain Papyrus or Papyrus Designer, so you shouldn't expect the same functionality. Papyrus RT was heavily customized for UML-RT, so many of the dialogs and editing functionality is not the same as the "regular" Papyrus editing.
|
|
|
Goto Forum:
Current Time: Sun Sep 01 03:47:30 GMT 2024
Powered by FUDForum. Page generated in 0.03491 seconds
|