[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| 
[platform-ui-dev] New Element Wizard
 | 
Hi all,
I try to developp a "New Element Wizard" with two pages. When i register a 
single page using addPage method , all works fine.
When i register two page , it doesn't work, no pages are displaying and i have 
only an empty dialog.
This is the piece of code use to register the page. The class 
NewElementWizard :
public void addPages()
    {
        super.addPages();
        if (mGeneralPage == null)
        {
            System.out.println("NewDTOWizard#addPages#createPage1");
            mGeneralPage = new NewDTOWizardGeneralPage();
            mGeneralPage.init(getSelection());
        }
        
        if (mPropertiesPage == null)
        {
            System.out.println("NewDTOWizard#addPages#createPage1");
            mPropertiesPage = new NewDTOWizardPropertiesPage();
        }
        addPage(mGeneralPage);
        addPage(mPropertiesPage);
 }
The first page inherit from NewTypeWizardPage and the second inherit from 
WizardPage.
There is no "next" and "previous" management in the wizard class because i 
guess that default behaviors are enough for me.
Any suggestions ?
Thanks
MAC
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.com