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

Bug 364176

Summary: [Property View] Bad display of a label on undo
Product: [Modeling] Papyrus Reporter: Anne WALTER <anne.walter>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED DUPLICATE QA Contact: Camille Letavernier <cletavernier>
Severity: normal    
Priority: P3 CC: benoit.maggi, cletavernier, eclipse-bugzilla, ronan.barrett
Version: 1.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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 ***