Bug 520393

Summary: Representation by category not refreshed after representation target deletion
Product: [Modeling] Sirius Reporter: Laurent Fasani <laurent.fasani>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: laurent.redor
Version: 4.1.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
EcoreSampleProject.zip none

Description Laurent Fasani CLA 2017-08-01 04:04:44 EDT

    
Comment 1 Laurent Fasani CLA 2017-08-01 04:12:28 EDT
scenario:
* open a modeling project with a diagram (not on root semantic element)
* expand "Representations by category" so user we can see the representation
* delete diagram target 
=> In the model explorer, in "Representations by category", the representation is not refreshed. The text should be greyed as it is still black.
* close, open the project and expand to the rep => the representation is correctly displayed
Comment 2 Laurent Redor CLA 2017-08-02 11:11:37 EDT
Created attachment 269653 [details]
EcoreSampleProject.zip

Here is more complete steps to reproduce:
* Import project EcoreSampleProject (from EcoreSampleProject.zip)
* In Model Explorer view, expand "representations.aird" to see both p2Diag and rootDiag
* Open rootDiag
* Delete p2 in rootDiag
* KO: In the Model Explorer view, "p2Diag" is not refreshed. The text should be grayed as it is still black.
* 1- Close, open the project and expand to the rep => the representation is correctly displayed
* or 2- Refresh the project => the representation is correctly displayed