Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313102 - [Wizard] Default file names on NewModelFilePage
Summary: [Wizard] Default file names on NewModelFilePage
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: ---   Edit
Assignee: Tatiana Fesenko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 06:12 EDT by Tatiana Fesenko CLA
Modified: 2010-11-09 17:14 EST (History)
1 user (show)

See Also:


Attachments
Proposed patch (2.38 KB, patch)
2010-06-07 10:36 EDT, Tatiana Fesenko CLA
sebastien.gerard: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tatiana Fesenko CLA 2010-05-17 06:12:08 EDT
Open NewModelFilePage (first page) of New Papyrus Model wizard.
Names of model file that are suggested by default are very weird. I can give as an  example several cases:
1. Default names should be valid names -- every new session of Eclipse starts couting from the beginning:
Create a new Papyrus Model with default file name (it will be 'model1.di')
Restart Eclipse. 
Now create a new Papyrus Model, default file name will be 'model1.di' again.
Wizard will show a error message "'model1.di' already exists.". Taking into account bug #313099 'Validate file name on NewModelFilePage' it is not so simple

2. Default naming doesn't take into account actual names of previosly created diagram:
Create a new Papyrus Model with non-default file name, say 'model2.di'.
Create a second new Papyrus Model -- proposed name will be 'model2.di', not 'model1.di' as I expect it to be. Such naming looks weird and may cause "'model2.di' already exists." problem.

Here I don't understand reasons why default mechanizm of file-naming (provided by GMF-Generation) wasn't used.
Comment 1 Tatiana Fesenko CLA 2010-06-07 10:36:27 EDT
Created attachment 171271 [details]
Proposed patch
Comment 2 Tatiana Fesenko CLA 2010-06-07 10:38:31 EDT
Fixed