| Summary: | EditModeDecorator checks the semantic element lockStatus and the part broken state twice | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Maxime Porhel <maxime.porhel> | ||||
| Component: | Diagram | Assignee: | Maxime Porhel <maxime.porhel> | ||||
| Status: | CLOSED FIXED | QA Contact: | Laurent Redor <laurent.redor> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | laurent.redor, pierre-charles.david | ||||
| Version: | 4.1.0 | Keywords: | triaged | ||||
| Target Milestone: | 5.0.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X | ||||||
| See Also: |
https://git.eclipse.org/r/91268 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=3da308551815a35744eee1a9a44c94be0db9e22d https://git.eclipse.org/r/93497 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a269741e02a214930a9376d6912530966218738c |
||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 512443, 512444 | ||||||
| Attachments: |
|
||||||
|
Description
Maxime Porhel
Gerrit change https://git.eclipse.org/r/91268 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=3da308551815a35744eee1a9a44c94be0db9e22d New Gerrit change created: https://git.eclipse.org/r/93497 See new patch set which reset the previous decoration image computation priority. Gerrit change https://git.eclipse.org/r/93497 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a269741e02a214930a9376d6912530966218738c @Maxime: It is difficult with the steps to reproduce to see what is expected after the fix of this issue: * One many calls to getPermissionAuthority(), getLockStatus(), eResource() are expected? * For which modifications? Steps to validate: * Install UML2 (from example from OD Ce update site "UML2 Extender SDK") * Import project "Decorators" from Decorators.zip * Start Yourkit * Open diagram MappingBasedDecoration Validation: * org.eclipse.sirius.ecore.extender.business.internal.permission.PermissionAuthorityRegistryImpl.getPermissionAuthority(ResourceSet) * OD CE 9.1: 81 calls * OD CE 10.0: 71 calls * org.eclipse.sirius.ecore.extender.business.internal.permission.ReadOnlyPermissionAuthority.getLockStatus(EObject) * OD CE 9.1: 23 calls * OD CE 10.0: 35 calls (12 are made with the new properties view) * EditModeDecorator.shouldBeDecorated(EditPart) and org.eclipse.sirius.diagram.ui.tools.internal.decoration.EditModeDecorationDescriptorProvider.shouldBeDecorated(EditPart) * OD CE 9.1: 32 calls * OD CE 10.0: 20 calls * org.eclipse.emf.ecore.EObject.eResource() * Time passed in this method is too short and it does not appear in Yourkit trace. Created attachment 268499 [details]
Decorators.zip
Available in Sirius 5.0.0, see https://wiki.eclipse.org/Sirius/5.0.0 for details. |