Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior in rALF Papyrus integration when changing selection between behaviors #27

Open
abelhegedus opened this issue Sep 1, 2015 · 2 comments

Comments

@abelhegedus
Copy link
Member

In the PingPongAdvanced model:

  • open the model tree in the Model Explorer to see both state entry actions in the two state machines
  • select one, change to the rALF body in the properties view
  • select the other, change to the rALF body in the properties view
  • select the first one again, the this->ping or this->pong part will show an error
  • changing the selection back and forth keeps showing errors

It may be a Papyrus bug or some other issue preventing a correct context to be used.

@ujhelyiz
Copy link
Member

ujhelyiz commented Sep 3, 2015

Even worse, it is possible that a modification gets written to a different model element...

@ujhelyiz
Copy link
Member

ujhelyiz commented Sep 3, 2015

These issues are most likely caused by the fact that the DirectEditorConfiguration class has a very long lifecycle (it is possibly a singleton), but the editing context has a much shorter lifespan. Somehow these pieces of context information can leak into each other unexpectedly, wreaking havoc in the user model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants