Bug 483801 - [Wizard] Project creation wizard API - Refactor needed
Summary: [Wizard] Project creation wizard API - Refactor needed
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 1.1.3   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-07 09:21 EST by Jonathan Dumont CLA
Modified: 2017-08-02 12:24 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Dumont CLA 2015-12-07 09:21:57 EST
Hi, 

I wanted to extends the wizard oep.uml.diagram.wizards.wizards.NewPapyrusProjectWizard to create a custom wizard for the ESF project. The problem is that the API proposed by this class may need a refactor to be extended easily.

In fact, in the init method, the first wizard page is created directly with : 
(...)
  setMyProjectPage(new PapyrusProjectCreationPage(Messages.NewPapyrusProjectWizard_0));
  getMyProjectPage().setDescription(Messages.NewPapyrusProjectWizard_1);
(...)

And the API which can be extended to customise the page is like this : 
  public PapyrusProjectCreationPage getMyProjectPage() {
    return myProjectPage;
  }

  public void setMyProjectPage(PapyrusProjectCreationPage myProjectPage) {
    this.myProjectPage = myProjectPage;
  }

  protected WizardNewProjectCreationPage createNewProjectCreationPage() {
    return this.myProjectPage;
  }


The thing is that I can't easily override the page creation as the createNewProjectCreationPage doesn't create anything ... and is not called in the class if I don't make a mistake.

Regards, 

Jonathan