Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #473263 +++ Steps to reproduce: . Open a DTree/DTable . Open the aird a text editor, modify it (add a space) and save . The aird is reloaded . Set the focus to the DTable/DTree editor . Popup "The root element has been deleted, the editor will close." > KO The main issue seems to be the aird reload with an open Table or Tree editor: our Tree and Table editors are not able to resolve their proxy Viewpoint/Sirius element, see: . AbstractDTableEditor.table . DTreeEditor.treeModel . DDiagramEditor.setFocus: getDiagramGraphicalViewer().getRootEditPart().getChildren().get(0): DDiagramEditPart.resolveSemanticElement is able to resolve the proxy. Fast working DRAFT: > private void checkSemanticAssociation() { > if (tableModel != null && tableModel.eIsProxy()) { > URI uri = ((InternalEObject) tableModel).eProxyURI(); > tableModel = (DTable) session.getTransactionalEditingDomain().getResourceSet().getEObject(uri, false); > } > if (tableModel == null || tableModel.eResource() == null || tableModel.getTarget() == null || tableModel.getTarget().eResource() == null) { > ... Look for resolve/resolveSemanticeElement methods into GrapicalEditPart/ViewUiil/EMFCoreUtile/Util/EcoreUtil
New Gerrit change created: https://git.eclipse.org/r/53072
Gerrit change https://git.eclipse.org/r/52877 was merged to [v3.0.x]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=814bb278e6aa174611e2f183643f80bf6f434890
Gerrit change https://git.eclipse.org/r/52878 was merged to [v3.0.x]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=b55fd604e38ef864d8cb7676ca6b68526382a1fe
New Gerrit change created: https://git.eclipse.org/r/53137
Gerrit change https://git.eclipse.org/r/53137 was merged to [v3.0.x]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f7cfdc68fe504a604b371bed5e21267dcdccf719
Corrected on 3.0.x branch.
Verified in 3.0.1.201509020834 (part of Mars.1 RC2 modeling package).
Available in Sirius 3.0.1 released on 2015-09-10.