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

Bug 448452

Summary: Table editor is closed if the representations file is modified outside of the session
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: TableAssignee: Pierre Guilet <pierre.guilet>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: maxime.porhel, pierre-charles.david
Version: 0.9Keywords: triaged
Target Milestone: 3.1.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
TableClosedOnFocus.zip none

Description Laurent Redor CLA 2014-10-23 04:58:49 EDT
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.
Comment 1 Laurent Redor CLA 2014-10-23 05:01:36 EDT
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.
Comment 2 Pierre Guilet CLA 2017-02-13 10:24:41 EST
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