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

Bug 318275

Summary: [Profile Diagram]Extension name modification must be preserved after a retarget
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 318583    
Bug Blocks:    

Description Vincent Lorenzo CLA 2010-06-29 02:52:26 EDT
Currently, a user can edit the extension name, but if the user changes the source or the target of this extension, this custom name is erased.
The same problem exists if the name of the stereotype changes.
Comment 1 Vincent Lorenzo CLA 2010-06-29 02:56:05 EDT
To see if the name has been change, I use the roles of the extension base_extendedMetaclassName and extension_stereotypeName. These values are derived from the ends.
Comment 2 Vincent Lorenzo CLA 2010-06-29 03:40:16 EDT
Another method is to do : extension.getMetaclass().getName() and extension.getStereotype().getName(). After we can compare these values with the current name to know if the same was edited by the user.
Comment 3 Vincent Lorenzo CLA 2010-06-29 04:53:21 EDT
Done in r2102