Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [cdt-dev] I could use some help on new wizard pages !

Thanks Wieant,

I never have overwritten 'getNextPage' since the original implementation of 'getNextPage'
(Baseclass: WizardPage) uses the wizard to determine the next page. This obviously doesn't
seem to work for the wizard. It seems as if the baseclass MBSCustomPage is used by most
people but since that is not required by the extension point documentation I haven't used it. 
Using the code from MBSCustomPage for getNextPage my second page now appears as expected, 
so thanks for your pointer.

With friendly regards

Daniel Kasmeroglu

-----Urspr√ľngliche Nachricht-----
Von: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] Im Auftrag von Wieant Nielander
Gesendet: Mittwoch, 27. Mai 2009 10:32
An: CDT General developers list.
Betreff: Re: [cdt-dev] I could use some help on new wizard pages !

> I'm trying to extend the wizard for the creation of new C/C++
> projects with additional pages. I've found the extension point
> 'org.eclipse.cdt.managedbuilder.ui.newWizardPages' which obviously
> addresses my needs so I wrote a page which properly showed up.  When
> I add a second page it doesn't seem to appear which means that I
> can't reach the second page I've added (and yes, I've updated the
> wizard container buttons).
> My extension declaration looks like this:
>   <extension point="org.eclipse.cdt.managedbuilder.ui.newWizardPages">
>     <wizardPage
>       ID="com.qvitech.cdtwizard.projectimportpage"
>       operationClass="com.qvitech.cdtwizard.ImportDataLoadOperation"
>       pageClass="com.qvitech.cdtwizard.ProjectImportPage"
>     />
>     <wizardPage
>       ID="com.qvitech.cdtwizard.importconfigurationpage"
>       operationClass="com.qvitech.cdtwizard.ExecuteImportOperation"
>       pageClass="com.qvitech.cdtwizard.ImportConfigurationPage"
>     />
>   </extension>
> As this is really trivial I do not understand why it's not
> working. I also can't find any kind of exception within the log file
> so I'm hoping that someone here on the list can show me the right
> direction (or probably point to a bug).

Seems to work fine here, perhaps you can try to debug the following
'MBSCustomPageManager.getNextPage(pageID)' call in your
"com.qvitech.cdtwizard.ProjectImportPage" class to see what happens:

    public IWizardPage getNextPage()
        // consult with the page manager to determine which pages are to be displayed
        return MBSCustomPageManager.getNextPage(pageID);

It iterates over all following custom pages and calls an 'isPageVisible' method
per page, perhaps that somehow returns false for your importconfigurationpage.
cdt-dev mailing list

Back to the top