Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316943 - [Wizard] Wrong suffix for file name when creating a profile model
Summary: [Wizard] Wrong suffix for file name when creating a profile model
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Tatiana Fesenko CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2010-06-15 12:29 EDT by Sébastien Gérard CLA
Modified: 2010-06-17 11:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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