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

Bug 316943

Summary: [Wizard] Wrong suffix for file name when creating a profile model
Product: [Modeling] Papyrus Reporter: Sébastien Gérard <sebastien.gerard>
Component: CoreAssignee: Tatiana Fesenko <tatiana.fesenko>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: yann.tanguy
Version: unspecifiedKeywords: plan
Target Milestone: 0.7.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Sébastien Gérard CLA 2010-06-15 12:29:11 EDT
The suffix for the files creating for a profile model should conform to the following syntax:
<Name of the model>.profile.uml
<Name of the model>.profile.di
<Name of the model>.profile.notation
Comment 1 Tatiana Fesenko CLA 2010-06-17 11:15:00 EDT
In the wizard we ask the user how to name a diagram file before making decision if he wants to crteate s Profile diagram. Thus this task needs a creative solution.
My solution is:
1. If the last selected value of the diagram language is "Profile" then "profile.uml" is used as an extension
2. If the last selected value of the diagram language is NOT "Profile" , but the user selects "Profile" then the file name is changed in order to have "profile.uml" extension. The user is notified by message about the chnage of the file name.
3. And vise versa. If it was "profile" and became "UML" (or, non-profile) then file has just "uml" extension, message informs about changes of file name

Talking about implementation, in order to have more generaic approach, I introduced a new attribute into diagramCategory extension point called "extensionPrefix"
Comment 2 Tatiana Fesenko CLA 2010-06-17 11:15:37 EDT
Fixed in HEAD