[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Wizard - Navigating to a desired Page.

Hi,

Scope:
I'm using Wizards for inserting and editing records of information in a
tree.

Problem:
I can't control the opening of the wizard in the page of my desire. I
don't want the chage the order of the pages.

Front of the Battle:
After researching for any suitable methods, i only found out the method,
showPage(IWizardPage page)
in  class WizardDialog. But i'm not able to put it to work. The problem
seems to be that when i call showPage (3) ,
the wizard (1) has no pages associated, (i'm extending Wizard, so the
pages are added in the interface method addPages, not in the constructor)
If i change the execution order (3) with (4), then i lose the execution
control, the dialog.open() stops the execution order, until it is dismiss.

/*
..

(1)	ClassificadorWIZ classWiz = new ClassificadorWIZ(treeElement);

(2)	WizardDialog dialog = new WizardDialog(window.getControl().getShell(),
classWiz);

(3)	dialog.showPage(classWiz.getPage(navPage));							

(4)	dialog.open();												
..
*/

Does anybody have a clue? 
Thank's

Pimenta