Bug 422500 - Save function in C/C++ View does not actually save
Summary: Save function in C/C++ View does not actually save
Status: ASSIGNED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Designer (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ansgar Radermacher CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-25 13:11 EST by Mihai Ciobanu CLA
Modified: 2017-08-02 05:52 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mihai Ciobanu CLA 2013-11-25 13:11:50 EST
When selecting an attribute on a class and looking in its C/C++ view, the textboxes for "Pointer declaration", "Reference declaration", "Default value",  and "Array value([...])" allow you to edit their contents, but the modified values are never recorded in them, even though when navigating away you are prompted with a dialog asking you whether you want to save your changes or not. They seem to be just reflecting values set through the profile tab on the various stereotypes applied to that element. 
 
If you modify the contents of these boxes, then the changes would be applied bidirectionally and Papyrus would go ahead and populate the fields of and apply the necessary stereotypes of the element in focus.
Comment 1 Ansgar Radermacher CLA 2013-11-27 10:40:31 EST
The save function does not work properly: it updates stereotype application, but does not set the attributes of the associated stereotype.

Besides not properly storing, there is another problem in this context. If the values are outside the view (e.g. via the Properties/profile view), the C/C++ view does not properly update its fields. Thus it "detects" an update when the user selects a different model element and asks whether to store modifications. If answered with yes, the view will actually restore originally values and override the changes by the user - which is quite annoying.