Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364176 - [Property View] Bad display of a label on undo
Summary: [Property View] Bad display of a label on undo
Status: RESOLVED DUPLICATE of bug 356924
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Camille Letavernier CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 11:27 EST by Anne WALTER CLA
Modified: 2014-09-15 09:29 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 Anne WALTER CLA 2011-11-18 11:27:27 EST
Build Identifier: 

After undoing the deletion of a dimension, the property page of the valueType referencing this dimension is not updated properly.

The reason is that the property page is updated when the dimension is set again to the valueType, but by this time, the dimension is not reconnected yet to its base instanceSpecification.

Reproducible: Always

Steps to Reproduce:
1.create a valueType having a dimension
2.delete the dimension
3.select the valueType and display its property page
4.call undo
=> the property page is updated but the displayed dimension label is not correct
Comment 1 Ronan Bar CLA 2014-05-22 10:18:33 EDT
Do you have a test model for this? What is a dimension?
Comment 2 Camille Letavernier CLA 2014-06-02 08:13:20 EDT
A pure-UML test case:

- Create a Class with a Property
- Type the property with the class
- Pin the properties view on the current selection (Icon on the top/right corner of the properties view)
- Select the class and rename it

See that the label of the "Type" field of the Property's properties view didn't change (You need to refresh the selection)

This can also be reproduced with "Undo" instead of pinning the view (Basically, any action which can change the label of the Class without changing the current selection):

- Create a Class with a Property
- Type the property with the class
- Select the class and rename it
- Select the property and Undo

This bug can be reproduced in any version of Papyrus (>= 0.8.0), and cannot be easily fixed (We'd probably need to refactor the label providers and a part of the properties view/widgets framework as well)
Comment 3 Benoit Maggi CLA 2014-09-15 09:27:47 EDT
Same Problem as 356924
Comment 4 Camille Letavernier CLA 2014-09-15 09:29:35 EDT
> Same Problem as 356924

I close/duplicate this bug

*** This bug has been marked as a duplicate of bug 356924 ***