Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323536 - Edited Stereotype values not persisted
Summary: Edited Stereotype values not persisted
Status: VERIFIED FIXED
Alias: None
Product: Tigerstripe
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: 0.5M0   Edit
Assignee: Anton Salnik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 327610 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-24 15:20 EDT by Jim Strawn CLA
Modified: 2010-10-26 23:56 EDT (History)
4 users (show)

See Also:


Attachments
Patch with bug fix (10.89 KB, patch)
2010-10-25 00:35 EDT, Anton Salnik CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Strawn CLA 2010-08-24 15:20:36 EDT
Open a Tigerstripe model Association and add a new sterotype to an end (CascadeStyle, for example). Hit Save (CTRL-S). Edit the new stereotype to define a value for this stereotype. Once again, hit Save (CTRL-S). If you now look in the source view, you will notice that the selected value has not been persisted. 

If you close the Association editor and re-open it, editing is fine (values will be persisted). 

This seems to only be an issue when added a new stereotype to an entity.
Comment 1 Chris Hartley CLA 2010-08-26 11:57:00 EDT
Yes I had notices something like this a few times but hadn't been able to reliably reproduce it.

The issue seemed to be with Stereotypes with parameters and depended on how you enter the parameter values.
If you add a parameter I think you need to hit return then OK else it doesn't get saved.
Comment 2 Ken Chambers CLA 2010-08-26 17:30:02 EDT
Just so you know -- this was a case where there was a parameter for a stereotype, but it was not a string field.   It was a checkbox.  

This was reproducable, and very irritating.  Developer makes a change, saves all of the files, does the generation, looks in the generated artifacts, and changes are not there.

Worse.  The wizard editor shows the changes, but clicking on Source shows that its not in the file.  Have to shutdown the editor and reopen the wizard screen.

This to me should have a high priority for usability.

(In reply to comment #1)
> Yes I had notices something like this a few times but hadn't been able to
> reliably reproduce it.
> 
> The issue seemed to be with Stereotypes with parameters and depended on how you
> enter the parameter values.
> If you add a parameter I think you need to hit return then OK else it doesn't
> get saved.
Comment 3 Navid Mehregani CLA 2010-10-14 18:38:12 EDT
*** Bug 327610 has been marked as a duplicate of this bug. ***
Comment 4 Anton Salnik CLA 2010-10-25 00:35:18 EDT
Created attachment 181608 [details]
Patch with bug fix

Patch with bug fix attached.
Comment 5 Yuri Strot CLA 2010-10-25 02:51:47 EDT
Applied Anton's patch.
Comment 6 Navid Mehregani CLA 2010-10-25 11:14:03 EDT
Verified. Thanks!