| Summary: | Table editor is closed if the representations file is modified outside of the session | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Laurent Redor <laurent.redor> | ||||
| Component: | Table | Assignee: | Pierre Guilet <pierre.guilet> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | maxime.porhel, pierre-charles.david | ||||
| Version: | 0.9 | Keywords: | triaged | ||||
| Target Milestone: | 3.1.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Quick analysis: In the method AbstractDTableEditor.checkSemanticAssociation(), called on table focus, the check "tableModel.eResource() == null" is true after the reloading of the session. The table editor has not been notified of the reloading of the session and the field "tableModel" has not been updated. The editor is not closed anymore since Sirius 3.1.0 but there is still problems related to aird modifications that will be treated with ticket https://bugs.eclipse.org/bugs/show_bug.cgi?id=512104 |
Created attachment 248119 [details] TableClosedOnFocus.zip The table editor is closed on focus with popup "The root element has been deleted..." if the representations file has been modified outside of the session (in text editor for example, or caused by an update of a SCM). Steps to reproduce: * Import the "TableClosedOnFocus" project from the joined zip * Open the table "Root Package Table" * Open the file "/TableClosedOnFocus/representations.aird" in a text editor * Replace headerColumnWidth="246" by headerColumnWidth="146" * Save the text editor * Set the focus on the table editor KO: The popup "The root element has been deleted..." appears and the editor is closed. It's not true, you can reopen the same table just after.