Community
Participate
Working Groups
It could be nice to have otherEnd and edgeView variable for reconnect tool precondition.
Implementer will have to create the homologation use case (reuse the test case) org.eclipse.sirius.tests.unit.api.tools.ReconnectionTest can be modified to contains new tests or asserts to check that the new variables are available. The VSM of the test might simply be modified to check the new variables.
New Gerrit change created: https://git.eclipse.org/r/55181
This issue is also linked to bug 573357.
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/194430
Steps to validate: * Import project Bug476523 from "Bug476523.zip". This project contains a precondition on the target reconnect tool based on the name of source ("otherEnd" variable). * Open diagram "new DiagramForBug467663" * Reconnect the edge, between ref2 and EClass1, from EClass1 to EClass2 * Expected: The reconnect is OK. * Reconnect the edge, between ref2 and EClass2, from EClass2 to EClassKO * Expected: The reconnect is OK. * Reconnect the edge, between ref1 and EClass1, from EClass1 to EClass2 * Expected: The reconnect is OK. * Reconnect the edge, between ref1 and EClass2, from EClass2 to EClassKO * Expected: The reconnect is not possible. The precondition uses the "otherEnd" variable.
Created attachment 288615 [details] Bug476523.zip
Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/194430 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=8ccf94ef34a13a592ecd8de7d7dfc594cded865e
Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/55181 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=1e150a9b90341029a9147a281606ffbfbd5507c8
The linked issue bug 573357 has not been totally fixed. The gerrit https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/194519, concerning the variables clean up, has not been fixed. Indeed, there is a regression risk with this "clean up", so it will be merged in another version.
(In reply to Laurent Redor from comment #10) > The linked issue bug 573357 has not been totally fixed. The gerrit > https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/194519, concerning > the variables clean up, has not been fixed. Indeed, there is a regression > risk with this "clean up", so it will be merged in another version. But this in no way prevents the variables from working properly in the context of the precondition.
Available in Sirius 7.0.2: https://projects.eclipse.org/projects/modeling.sirius/releases/7.0.2