| Summary: | For DNodeListElement the direct edit does not seem to call into the permission authority | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Daria Tioc-Deac <daria.tioc-deac> |
| Component: | Diagram | Assignee: | Pierre-Charles David <pierre-charles.david> |
| Status: | CLOSED FIXED | QA Contact: | Florian Barbin <florian.barbin> |
| Severity: | normal | ||
| Priority: | P3 | CC: | daria.tioc-deac, florian.barbin, maxime.porhel, niels.brouwers, pierre-charles.david |
| Version: | 3.0.0 | Keywords: | triaged |
| Target Milestone: | 4.1.2 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/85468 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=da487adcd31c6ce3777cf8733964b22897847889 |
||
| Whiteboard: | needtest | ||
|
Description
Daria Tioc-Deac
Step to reproduce: . launch a runtime . open/create an EcoreTools class diagram with at least one EClass and one EAttribute . put a breakpoint in org.eclipse.sirius.ecore.extender.business.internal.permission.ReadOnlyPermissionAuthority.isReadOnly() . change the activation field to true . try to direct edit the EClass label and the EAttribute label (F2 or selection and keyboard) > The direct edit seems enabled but produce no change on the list element > The direct edit is disabled on the list label Other elements (edit parts) will have to be checked: container (1,2), list (1,2), node and border nodes (1,2,3,4), edges. I add a dependency link to Bug 481812 as the issue might be in the same area org.eclipse.sirius.diagram.ui.internal.edit.parts.AbstractGeneratedDiagramNameEditPart.isEditable() make the permission authority check DNodeListElementEditPart inherits from AbstractGeneratedDiagramNameEditPart but override isEditable() by "return getParser() != null;" without calling the super method. The other subclasses of AbstractGeneratedDiagramNameEditPart are not impacted. Concluding from the comments added by Obeo, the fix seems trivial. Any chance it can come with the next release of Sirius? New Gerrit change created: https://git.eclipse.org/r/85468 New Gerrit change created: https://git.eclipse.org/r/85468 Thanks for reactivating this. Indeed, the patch seems trivial. The hardest part will probably be to write the non-regression test. I'm putting this for consideration in the next maintenance release (4.1.2). Great, thanks a lot! Gerrit change https://git.eclipse.org/r/85468 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=da487adcd31c6ce3777cf8733964b22897847889 Fixed but needs a non-regression test before we close the ticket. Verified on Sirius 4.1.2.201612011000. Available in Sirius 4.1.2 (see https://wiki.eclipse.org/Sirius/4.1.2 for details). |