Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to communicate between wizard pages
How to communicate between wizard pages [message #460342] Wed, 20 December 2006 08:34 Go to next message
Eclipse UserFriend
Originally posted by: diebosto.fi.vupv.es

I'm trying to change the data of a widget on a (second) page according to
the contents of the widgets of another (first) page. The processing of the
data to be loaded on the widget is very complex and it shouldn't be done
more that once.
I've been searching for a method in the first or in the second page that
allows me to call it between the "next" button on the first page and the
moment the second page shows up.
I've tryed the getNextPage() method, but it get called before the user
pushes "next" button, so it gives fake results
any ideas?
thanks!
Re: How to communicate between wizard pages [message #460481 is a reply to message #460342] Thu, 21 December 2006 09:33 Go to previous messageGo to next message
Eclipse UserFriend
You could override the second page's setVisible() to do something like:

public void setVisible(boolean visible)
{
super.setVisible(visible);
initializeMyDataHere();
}


"Diego Bosca" <diebosto@fi.vupv.es> wrote in message
news:Xns989F944BF1A79diebostofivupves@206.191.52.34...
> I'm trying to change the data of a widget on a (second) page according to
> the contents of the widgets of another (first) page. The processing of the
> data to be loaded on the widget is very complex and it shouldn't be done
> more that once.
> I've been searching for a method in the first or in the second page that
> allows me to call it between the "next" button on the first page and the
> moment the second page shows up.
> I've tryed the getNextPage() method, but it get called before the user
> pushes "next" button, so it gives fake results
> any ideas?
> thanks!
Re: How to communicate between wizard pages [message #460570 is a reply to message #460481] Fri, 22 December 2006 03:24 Go to previous message
Eclipse UserFriend
Originally posted by: diebosto.fi.vupv.es

Thanks! That's what i wanted :)

"Gail Jakubowski" <gjakubowski@ineousa.com> wrote in
news:eme5sh$jq8$1@utils.eclipse.org:

> You could override the second page's setVisible() to do something
> like:
>
> public void setVisible(boolean visible)
> {
> super.setVisible(visible);
> initializeMyDataHere();
> }
>

>
> "Diego Bosca" <diebosto@fi.vupv.es> wrote in message
> news:Xns989F944BF1A79diebostofivupves@206.191.52.34...
>> I'm trying to change the data of a widget on a (second) page
>> according to the contents of the widgets of another (first) page. The
>> processing of the data to be loaded on the widget is very complex and
>> it shouldn't be done more that once.
>> I've been searching for a method in the first or in the second page
>> that allows me to call it between the "next" button on the first page
>> and the moment the second page shows up.
>> I've tryed the getNextPage() method, but it get called before the
>> user pushes "next" button, so it gives fake results
>> any ideas?
>> thanks!
>
>
>
Previous Topic:Update RCP application
Next Topic:Problem while launching RCP application as using .product file.
Goto Forum:
  


Current Time: Mon Mar 17 23:34:42 EDT 2025

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

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

Back to the top