Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346165 - [Sequence Diagram] Message creation dialog creates element outside model, exceptions during save
Summary: [Sequence Diagram] Message creation dialog creates element outside model, exc...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.1   Edit
Hardware: PC All
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Mathieu Velten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 17:35 EDT by Ansgar Radermacher CLA
Modified: 2011-05-23 09:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ansgar Radermacher CLA 2011-05-17 17:35:37 EDT
The message creation dialog can either connect a message with an existing signal or operation or create a new one.
The problem is that the default owner of the new element is a package outside the model hierarchy, in my case the profile (MARTE) GRM (the model applied some MARTE sub-profiles and imports the MARTE library). If the user accepts the default package without careful observation, the signal/operation is created in a package that is outside the user model. As a result, subsequent save operations fail with an exception ("object ... is not contained in a resource"). If the error log view is not active, the user does not even realize that the save has failed, except that the model remains marked as dirty.
Comment 1 Mathieu Velten CLA 2011-05-18 05:40:51 EDT
can I have the example model just before you try to create the message ?
Thanks !
Comment 2 Mathieu Velten CLA 2011-05-23 09:01:38 EDT
fixed in rev 4756