[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Wizard - Navigating to a desired Page.
|
- From: ppimenta@xxxxxxxx (Pedro Pimenta)
- Date: Mon, 28 Jul 2003 15:39:52 +0000 (UTC)
- Newsgroups: eclipse.platform.swt
- Organization: http://news.eclipse.org
- User-agent: NewsPortal/0.25 (http://florian-amrhein.de/newsportal/)
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