Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #452681 +++ Using the attached example : 1. open My.ecore 2. Expand the My.ecore from Model Explorer to see the diagram under the root package. 3. In the My.ecore opened with the Sample Ecore Model Editor, copy and paste "c1" then save 4. Under My.ecore in Model Explorer, the root EPackage is collapsed and when you expand it the diagram does not appears. It appears only under the .aird hierarchy. We must close and reopen the Modeling Project to see again the diagram under root EPackage in Model Explorer or do another changes in the Sample Ecore Model Editor.
Gerrit is available here: https://git.eclipse.org/r/39781
Fixed by commit 4ee7bdf1a94fddc934ea1deea627857eedd3e9a1 on v2.0.x branch
KO on Sirius Stable pre-2.0.3 (2.0.3-S20150116-162634)
Belqassim, could you precise your errors ?
(In reply to Maxime Porhel from comment #4) > Belqassim, could you precise your errors ? When I modified the semantic model by using the editor, the representation file dispears from the Model Explorer view after session reload (after saving the model).
The fix is OK on Juno but is KO on Luna. There is probably a change in org.eclipse.emf.ecore.util.ECrossReferenceAdapter.
Indeed, since the bugzilla 400891, the proxyMap is no longer used if the resolve() method returns true. In this case, we must iterate on all crossReferences to retrieve corresponding proxies.
Fixed with http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a895c2ed1d73b42d2eaac4f91f8865c0e8182671
Test has been added with commit http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?h=v2.0.x&id=501c972a0a5a76ff969cd85aca6f0101d55ccc3d
Validated on Sirius Stable pre-2.0.3 (2.0.3.201501210822)
Available in Sirius 2.0.3.