Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 530156

Summary: [Performances] Avoid recomputing the Stereotype when applying it
Product: [Modeling] Papyrus Reporter: Camille Letavernier <cletavernier>
Component: CoreAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse-bugzilla, toni.siljamaki, vincent.lorenzo
Version: 3.3.0   
Target Milestone: 4.0.0   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/115853
https://git.eclipse.org/r/115874
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=8733a658a78d04d8faf97264d1d75ad280208111
Whiteboard:
Bug Depends on: 528925    
Bug Blocks: 529945    

Description Camille Letavernier CLA 2018-01-23 05:13:23 EST
When applying a stereotype on an Element, we lose the reference to the stereotype being applied. Currently, we need to find the Stereotype again in the call stack, which may take a significant amount of time (Especially when creating many stereotyped elements in a batch operation; this is not so much of an issue when creating only one element)

In Bug 528925 UML (5.4.0) provides new APIs which preserve the stereotype reference during application. This task is a follow-up for Papyrus to use these new APIs.
Comment 1 Eclipse Genie CLA 2018-01-23 05:14:38 EST
New Gerrit change created: https://git.eclipse.org/r/115853
Comment 2 Camille Letavernier CLA 2018-01-23 06:00:21 EST
Changing the target to Photon, as we need UML 5.4, which depends on EMF 2.14 / Photon
Comment 3 Eclipse Genie CLA 2018-01-23 08:27:18 EST
New Gerrit change created: https://git.eclipse.org/r/115874
Comment 5 Camille Letavernier CLA 2018-04-12 08:26:37 EDT
Fixed on Photon/master for M7