Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » pass data between wizard page
pass data between wizard page [message #553207] Mon, 16 August 2010 16:49 Go to next message
ash is currently offline ashFriend
Messages: 142
Registered: July 2010
Senior Member
Hi all

Can any 1 tell how to extract data from wizards and pass same data between wizard page.

Thanks
Ashok
Re: pass data between wizard page [message #553341 is a reply to message #553207] Tue, 17 August 2010 08:02 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
ashok_kumar_rr@yahoo.com wrote:
> Hi all
>
> Can any 1 tell how to extract data from wizards and pass same data
> between wizard page.
You can e.g. let the pages access the data via wizard or the pages can
share a data object which the wizard passes to the pages when creating them.

Dani
>
> Thanks
> Ashok
Re: pass data between wizard page [message #553373 is a reply to message #553207] Tue, 17 August 2010 10:22 Go to previous messageGo to next message
ash is currently offline ashFriend
Messages: 142
Registered: July 2010
Senior Member
can u plz share the example

to


"ashok_kumar_rr@yahoo.com"
Re: pass data between wizard page [message #553389 is a reply to message #553207] Tue, 17 August 2010 11:39 Go to previous messageGo to next message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 203
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
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();
...
}

[Updated on: Tue, 17 August 2010 11:54]

Report message to a moderator

Re: pass data between wizard page [message #553391 is a reply to message #553373] Tue, 17 August 2010 11:53 Go to previous message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 203
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
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();
...
}
Previous Topic:Mutual Exclusive Features
Next Topic:Product Export
Goto Forum:
  


Current Time: Tue Apr 16 15:36:24 GMT 2024

Powered by FUDForum. Page generated in 0.89457 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top