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

Bug 313102

Summary: [Wizard] Default file names on NewModelFilePage
Product: [Modeling] Papyrus Reporter: Tatiana Fesenko <tatiana.fesenko>
Component: CoreAssignee: Tatiana Fesenko <tatiana.fesenko>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tatiana.fesenko
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch sebastien.gerard: iplog+

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