Two bugs in papyrus-rt RCP on macOS? [message #1770723] |
Wed, 16 August 2017 13:40 |
reza ahmadi Messages: 47 Registered: September 2016 |
Member |
|
|
Hi,
I see two bugs in papyrus-rt RCP 0.9 and 1.0 on macOS:
1- I cannot add Effect on a transition. e.g., adding an opaque behaviour on a transition. opaque behaviour is added but code snippet remains empty.
2- If I programmatically add, say, some transitions to a region, I cannot display them by dragging and dropping them on the state machine diagram.
#1 I guess is not too severe as there are some workarounds, e.g. by using code snippet view to add action code or code snippets.
Is there any workaround for #2?
I do not see any of these bugs on my Ubuntu machine. I have tried on papyrus-rt RCP 0.9.
Thanks.
[Updated on: Wed, 16 August 2017 13:43] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: two bugs in papyrus-rt RCP on macOS? [message #1770846 is a reply to message #1770755] |
Thu, 17 August 2017 15:19 |
Ernesto Posse Messages: 438 Registered: March 2011 |
Senior Member |
|
|
When you create the states and transitions programatically which API are you using? Are you using the UML-RT façade I mentioned in my original answer or are you using the UML API directly?
I did some experiments with the 1.0 RCP. I created a single model with one capsule with one state machine, which creates by default an Initial Pseudostate, a state called State1 and a transition from the former to the later. Then, I tried to simulate adding elements programatically by editing the .uml file of a simple model directly in a text editor, adding a state State2 and a transition t1 from State1 to State2, and ensuring that they where both in the same RTRegion as State1 (if you use the UML-RT façade API this should have the same effect). Then I opened the model as a Papyrus model. When I opened the diagram for the state machine, and it automatically added State2 and t1 to the diagram without me having to drag them from the Model Explorer.
This experiment was carried out on mac, so it suggests that perhaps you are not adding the new model elements correctly. This is likely if you use the UML API, instead of the UML-RT façade API, which ensures the structural correctness of the model with respect to the UML-RT syntax. Several things could go wrong by using the UML API. For example, you could be adding elements to the wrong region, or forget adding the UML-RT stereotypes. If you use the façade API, you don't have to worry about those kinds of errors.
BTW, I do not recommend using 0.9 anymore. Version 1.0 fixed a lot of bugs, and 0.9 is no longer maintained.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04162 seconds