Bug 536327 - The exist diagram icon will not delete if the diagram had deleted
Summary: The exist diagram icon will not delete if the diagram had deleted
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.1.1   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-06-27 02:15 EDT by Bo Zhang CLA
Modified: 2018-07-06 05:12 EDT (History)
1 user (show)

See Also:


Attachments
Error diagram icon (180.74 KB, image/png)
2018-06-27 02:23 EDT, Bo Zhang CLA
no flags Details
536327_sample (5.29 KB, application/x-zip-compressed)
2018-07-06 05:11 EDT, Steve Monnier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bo Zhang CLA 2018-06-27 02:15:01 EDT
In the Diagram, if an element contains inner diagram, it will display an icon at bottom right corner, Generally if user delete the diagram, the icon will be delete at the same time. But sometimes it will not disapear when the diagram had deleted.
 
Steps to reproduce:
1. Import Sirius Example - Metamodel definition and Compartments Tutorial Solution.
2. Run Eclipse Application.
3. New Sirius Examples - Basic Family Sample Model.
4. Create Persions diagram and Relations diagram.
5. Close Relations diagram, only open Persions diagram.
6. Save All.
7. Extract "Relations of Paul" to newDiagrams.aird.
8. Save All.
9. Delete "Relations of Paul" in Model Explorer.

Expect result: The Relations diagram will be delete and the icon in "Persons Diagram" will be delete.

Result: The Relations diagram will be delete, but the icon in "Persons Diagram" will not delete.
Comment 1 Bo Zhang CLA 2018-06-27 02:23:11 EDT
Created attachment 274632 [details]
Error diagram icon
Comment 2 Steve Monnier CLA 2018-07-06 05:11:44 EDT
Created attachment 274853 [details]
536327_sample

Good catch. Indeed, it appears that there is a refresh issue on this scenario. If the Person diagram is closed and reopened at the end of the scenario, the decorator does not appear anymore. I joined the resulting project of the scenario.