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

Bug 313179

Summary: [Usability] Refactor CreateModelWizard
Product: [Modeling] Papyrus Reporter: Tatiana Fesenko <tatiana.fesenko>
Component: CoreAssignee: Tatiana Fesenko <tatiana.fesenko>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: rschnekenburger, tatiana.fesenko
Version: unspecifiedFlags: sebastien.gerard: iplog-
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 276286    
Bug Blocks: 267010    
Attachments:
Description Flags
Initial patch
sebastien.gerard: iplog+
Initial refactoring
sebastien.gerard: iplog+
Javadoc added
sebastien.gerard: iplog+
Refactoring - creation functionality was woved from the Wizard to the corresponding wizard pages
sebastien.gerard: iplog+
Propoes Patch
sebastien.gerard: iplog+
Refactor SelectTemplateWizardPage sebastien.gerard: iplog+

Description Tatiana Fesenko CLA 2010-05-17 12:06:27 EDT
Now CreateModelWizard class has checks like this almost in every method:
if (templatePath != null) {...} else {...}
It(and some other methods ) makes it very difficult to re-use (say, in bug #267010 ' [General] Project creation wizard creating a new project and a new Papyrus model at once')
Refactor the code of  CreateModelWizard for easier re-user
Comment 1 Tatiana Fesenko CLA 2010-05-17 12:10:18 EDT
Created attachment 168758 [details]
Initial patch
Comment 2 Cedric Dumoulin CLA 2010-05-18 04:51:48 EDT
The way models are loaded/created is about to be changed  (in less than 2 days). 
Please wait before applying the patch as the model loading changes will certainly impact the CreateModelWizard.
Comment 3 Tatiana Fesenko CLA 2010-05-18 05:32:30 EDT
> The way models are loaded/created is about to be changed  (in less than 2
> days). 
Cedric, could you provide me a number of this request. It will allow me to track status of the bug and better plan my own work. Thank you.
Comment 4 Tatiana Fesenko CLA 2010-05-19 08:18:32 EDT
(In reply to comment #3)
> > The way models are loaded/created is about to be changed  (in less than 2
> > days). 
> Cedric, could you provide me a number of this request. It will allow me to
> track status of the bug and better plan my own work. Thank you.
Cedric, any update on this topic? It pauses my work with bug #267010
Comment 5 Cedric Dumoulin CLA 2010-05-19 09:01:41 EDT
Depends on bug #276286 .
What will change is the way to create models.
Comment 6 Tatiana Fesenko CLA 2010-05-19 09:46:24 EDT
(In reply to comment #5)
> Depends on bug #276286 .
> What will change is the way to create models.

Cedrik, thank you for providing number of blocking request. It will help me to plan my own work.
Comment 7 Tatiana Fesenko CLA 2010-05-21 10:10:55 EDT
Created attachment 169501 [details]
Initial refactoring
Comment 8 Tatiana Fesenko CLA 2010-05-21 10:13:01 EDT
(In reply to comment #7)
> Created an attachment (id=169501) [details]
> Initial refactoring

Remi, could you commit the patch to SVN? Thank you!
Comment 9 Remi Schnekenburger CLA 2010-05-21 10:46:15 EDT
(In reply to comment #8)
> (In reply to comment #7)
> > Created an attachment (id=169501) [details] [details]
> > Initial refactoring
> 
> Remi, could you commit the patch to SVN? Thank you!

commit in r1693

Thanks!
Comment 10 Tatiana Fesenko CLA 2010-05-25 06:00:46 EDT
Created attachment 169796 [details]
Javadoc added
Comment 11 Remi Schnekenburger CLA 2010-05-25 06:15:58 EDT
(In reply to comment #10)
> Created an attachment (id=169796) [details]
> Javadoc added

Committed in r1710.
Thanks!
Comment 12 Tatiana Fesenko CLA 2010-05-26 06:17:51 EDT
Created attachment 169962 [details]
Refactoring - creation functionality was woved from the Wizard to the corresponding wizard pages
Comment 13 Remi Schnekenburger CLA 2010-05-26 06:23:31 EDT
(In reply to comment #12)
> Created an attachment (id=169962) [details]
> Refactoring - creation functionality was woved from the Wizard to the
> corresponding wizard pages

Patch applied in r1718.

Thanks ;)
Comment 14 Tatiana Fesenko CLA 2010-05-26 06:37:27 EDT
Created attachment 169963 [details]
Propoes Patch
Comment 15 Remi Schnekenburger CLA 2010-05-26 06:41:25 EDT
(In reply to comment #14)
> Created an attachment (id=169963) [details]
> Propoes Patch

Applied in r1720.

Thanks!
Comment 16 Tatiana Fesenko CLA 2010-06-02 06:29:56 EDT
Created attachment 170771 [details]
Refactor SelectTemplateWizardPage
Comment 17 Remi Schnekenburger CLA 2010-06-02 06:37:00 EDT
(In reply to comment #16)
> Created an attachment (id=170771) [details]
> Refactor SelectTemplateWizardPage

Applied in r1775.
Thanks ;-)
Comment 18 Tatiana Fesenko CLA 2010-06-07 06:26:31 EDT
Fixed