Community
Participate
Working Groups
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.
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.