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

Bug 364184

Summary: [Properties view] Can’t set default for Integer property of stereotype
Product: [Modeling] Papyrus Reporter: Simon Wright <simon>
Component: ViewsAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Simon Wright CLA 2011-11-18 12:38:48 EST
Build Identifier: Build Identifier: M20110909-1335 Papyrus: 0.8.2

I have a Class stereotype "active" with a property “stack” of type Integer (from Standard UML) and I want to set the default value to 20000. I click on the ‘+’ and get a dialog which allows me to set the name of the value (I chose “defaultStackSize”) and the value (I chose 20000). When I click on OK the Property dialog shows “defaultStackSize=0”.

The .profile.uml contains
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="_UC1OEBH9EeGZGqvvWn6dFg" name="defaultStackSize”/>.

I added 'value=“20000”’ using a text editor; now I get the correct default in a model that uses the profile (but only if I remove the stereotype and re-apply it).

However I still can’t edit the value in the profile: if I try to change in, it appears in the dialog as “20,000” but when I change it to “20,001” and save the change is ignored.


Reproducible: Always
Comment 1 Camille Letavernier CLA 2014-05-14 10:44:57 EDT
This bug has been fixed some time ago

I close the task