|
Description
Maxime Porhel
Gerrit change https://git.eclipse.org/r/59658 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=9ae6923cdd4d14cb985c1efbd916b45caef5e34e Corrected on master I quickly tried to reference a Validation Rule in a ValidationSet ( reusedRules) and the rules seem to be still referenced with this kind of id: @ownedRules.0 and not its name. I reopen it following the previous comment We also need to set the eKeys on the following features: org.eclipse.sirius.diagram.DDiagram.getActivatedRules() org.eclipse.sirius.diagram.description.concern.ConcernDescription.getRules() org.eclipse.sirius.viewpoint.description.validation.ValidationSet.getReusedRules() New Gerrit change created: https://git.eclipse.org/r/92026 Gerrit change https://git.eclipse.org/r/92026 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=b374f4350a117ee7bf110daaa11f4be4236e4150 New Gerrit change created: https://git.eclipse.org/r/92224 Gerrit change https://git.eclipse.org/r/92224 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=2c752ebbba531f5f8c6737d783699b0de4d12387 New Gerrit change created: https://git.eclipse.org/r/92242 Gerrit change https://git.eclipse.org/r/92242 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=c977d6724598b665fd988b24e0097fd6157dea10 Just to make things clear: the only thing left here is a non-regression test. Marking as resolved to make it clearer what's left to do for 5.0. This is still marked as "needtest". Re-opening. I *thought* I had fixed this, but trying to make a proper reproduction case it seems broken. Can't reproduce the problem I thought I had seen, closing again. Verified on OD CE 10.0rc2 (Sirius 5.0.0.201705230722).
Steps to reproduce:
1. Create a.odesign, with a validation set containing two rules R1 and r2 (in that order).
2. Create b.odesign. Load a.odesign ("Load resource..." > from workspace).
3. In b.odesign, create a validation set, and in the "Import" section, reference "R1".
4. Save & Close.
5. Open b.odesign in text mode, and check that the URI in href for "reusedRules" (which points to "R1") ends with "@ownedRules[name='R1']" and NOT with "@ownedRules.0".
6. Open a.odesign, and reorder R1 and R2, so that R1 appears first. Save.
7. Re-open b.odesign with the VSM editor, and check that the validation set still imports "R1", even though it has changed position.
Available in Sirius 5.0.0, see https://wiki.eclipse.org/Sirius/5.0.0 for details. |