Community
Participate
Working Groups
Created attachment 251987 [details] VSM Project and example project Let's use an example to explain the problem. I've attached 2 projects : a VSM project and an example project. The VSM defines a diagram on EPackage. 1) All EClasses from the EPackage are displayed using a container mapping. 2) All EClasses that are referenced from EClasses in this EPackage are displayed using another containre mapping (unsynchronizable). The EClass from the current EPackage are not displayed twice. 3) A unsynchronized container mapping is used to display an external EClass (from another EPackage) so the user can creates a reference to it. The example model contains : - an EPackage "A" with 3 EClasses (A1, A2, A3) - an EPackage "B" with 3 EClasses (B1, B2, B3) Steps to reproduce : 1) Import VSM and example projects 2) Open the "new Test" diagram on EPackage A in the example project. It displays "internal" EClasses (A1, A2, A3) 3) Using the "External EClass" tool, select an "external" EClass. For example B1 => It is displayed using the unsynchronized container mapping. 4) Using the "EReference" tool , create an EReference from A1 to B1 => - B1 is displayed using the synchronized container mapping : OK. - the unsynchronized container on B1 has been removed : OK - B1 has moved on the diagram : OK because its mapping changed. - The "selection shadow" on the unsynchronized mapping is still visible. :KO It can not be selected nor removed. The only way to delete it is to close/reopen the diagram. See screenshots for a before/after EReference creation comparison.
Created attachment 251988 [details] Before EReference creation. The red "B1" is unsynchronized
Created attachment 251989 [details] After EReference creation : snchronized mapping has been instanciated. Shadow is still visible.
This issue has already be fixed on sirius 3.0 by https://bugs.eclipse.org/bugs/show_bug.cgi?id=453433. Feel free to reopen this bugzilla if a backport is needed. *** This bug has been marked as a duplicate of bug 453433 ***