Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346165

Summary: [Sequence Diagram] Message creation dialog creates element outside model, exceptions during save
Product: [Modeling] Papyrus Reporter: Ansgar Radermacher <ansgar.radermacher>
Component: CoreAssignee: Mathieu Velten <mathieu.velten>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3    
Version: 0.7.1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

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