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

Bug 318008

Summary: [Profile Diagram] Extension management ? Ambiguous Naming Convention? When two extensions are created for a same stereotype, they get the same name.
Product: [Modeling] Papyrus Reporter: alanusse Mising name <agnes.lanusse>
Component: CoreAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screen View Ambiguous naming of extensions in Profile Diagram none

Description alanusse Mising name CLA 2010-06-25 11:42:21 EDT
When two extensions are created for a same stereotype, they get the same name. This  leads to ambiguities in the model.
At least there should be a suffix using the BaseClassName (and number).

Reproducible: Always

Steps to Reproduce:
In a Stereotype Diagram.

1.Import two MetaClasses 
2.Create a Stereotype named  MyStereotype
3.Create an extension on each metaclass

Result : 
In outline we get two extensions named Extension_MyStereotype.

Suggestion : suffix extension name with baseClassName
Comment 1 alanusse Mising name CLA 2010-06-25 11:44:22 EDT
Created attachment 172771 [details]
Screen View Ambiguous naming of extensions in Profile Diagram
Comment 2 Vincent Lorenzo CLA 2010-06-28 11:53:43 EDT
I change the naming convention for the extension. This new convention looks like the association convention (cf page 18 from the UML Superstructure V2.2) : E_stereotypeName_metaclassName.
Comment 3 Vincent Lorenzo CLA 2010-06-29 04:53:00 EDT
To conclude the extension name is : 
E_stereotypeName_metaclassName, suffixed by a number.
Done in r2102
Comment 4 Vincent Lorenzo CLA 2010-07-27 08:33:47 EDT
*** Bug 318002 has been marked as a duplicate of this bug. ***
Comment 5 Vincent Lorenzo CLA 2010-11-15 05:51:37 EST
*** Bug 318007 has been marked as a duplicate of this bug. ***