Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364184 - [Properties view] Can’t set default for Integer property of stereotype
Summary: [Properties view] Can’t set default for Integer property of stereotype
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Views (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 12:38 EST by Simon Wright CLA
Modified: 2014-05-14 10:44 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 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