|
|
|
|
Re: pass data between wizard page [message #553391 is a reply to message #553373] |
Tue, 17 August 2010 07:53  |
Eclipse User |
|
|
|
From the wizard page that uses data from another wizard page, you obtain the wizard. From the wizard you get the desired page by calling the wizards getPage() method. As parameter you put the desireds wizard page name (a string that you passed while adding that page to the wizard. Cast the result to the desired page and check if the result is not null. Then you can get any data you want by calling any getter method of that page:
IWizard wizard = myPage.getWizard();
MyOtherPage otherPage = (MyOtherPage) wizard.getPage("other.page");
if (otherPage != null)
{
otherPage.getThis();
otherPage.getThat();
...
}
|
|
|
Powered by
FUDForum. Page generated in 0.03585 seconds