Bug 498258 - The label of the property view does not refresh on a null value
Summary: The label of the property view does not refresh on a null value
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Properties (show other bugs)
Version: 4.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.1.0   Edit
Assignee: Stephane Begaudeau CLA
QA Contact: Julien Dupont CLA
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-07-21 05:00 EDT by Arthur Daussy CLA
Modified: 2016-10-18 11:07 EDT (History)
4 users (show)

See Also:


Attachments
Use case to reproduce problem (7.85 KB, application/zip)
2016-10-04 08:23 EDT, Julien Dupont CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Daussy CLA 2016-07-21 05:00:10 EDT
I'm using Sirius with the new property framework. The label on the top of the property view is not properly refreshed when a user select an element that has a label equal to null. Instead it keeps the label of the last selected item.

To reproduce:
* Open your Sirius Editor with some property views
* Select element that has a label (The itemProvider of this element returns a getText() != null)
* The select an element with no label The itemProvider of this element returns a getText() == null)

The label of the property view keeps the label of first selected items
Comment 1 Steve Monnier CLA 2016-07-21 08:23:46 EDT
Hi,
thanks for your detailled bug report.
Comment 2 Eclipse Genie CLA 2016-09-14 04:15:33 EDT
New Gerrit change created: https://git.eclipse.org/r/81063
Comment 4 Arthur Daussy CLA 2016-09-21 10:31:18 EDT
It's corrected on 
* Sirius 4.1.0.201609201603
* Eef:   1.7.0.201609191510

Thanks
Comment 5 Julien Dupont CLA 2016-10-04 08:23:03 EDT
Created attachment 264570 [details]
Use case to reproduce problem

Steps to reproduce:
- Open the diagram named "New Diagram"
- Select the EClass named "E1", the properties view should display EClass Name: E1
- OK
- Select the EClass not named, the properties view should be updated.
Comment 6 Pierre-Charles David CLA 2016-10-18 11:07:31 EDT
Available in Sirius 4.1.0, see https://wiki.eclipse.org/Sirius/4.1.0 for details.