Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeViewer and Wizard Page
TreeViewer and Wizard Page [message #439522] Tue, 13 July 2004 06:06 Go to next message
Prasad is currently offline PrasadFriend
Messages: 9
Registered: July 2009
Junior Member
Hi all,
I have a TreeViewer on a WizardPage to display a list of countries. On the
next page I display all the states in all the countries using a
CheckBoxTreeViewer. I am adding up relevant objects in getInitialInput()
method of the individual page. Everything is static here.
Now I want that user should select one country on the first page and on
the next page, states only from the selected country be displayed.

I am handling country selection but I have no idea how to populate objects
in the next page after my selection on the first page. And even if I add
the required objects, how do I tell the next wizard page to display the
elements I added right now ? Basically how do I call the getInitialInput()
method of the second page only after my selection on the first page ? Do
we have any method of populating the checkbox tree based on conditions
with respect to Wizard Page?
correction...Re: TreeViewer and Wizard Page [message #439525 is a reply to message #439522] Tue, 13 July 2004 08:34 Go to previous message
Prasad is currently offline PrasadFriend
Messages: 9
Registered: July 2009
Junior Member
getInitialInput() method is my method where I return root object as an
argument to the setInput() method of StructuredViewer -this way:
viewer.setInput(getInitialInput());

Thanks
-------------
Prasad wrote:

> Hi all,
> I have a TreeViewer on a WizardPage to display a list of countries. On the
> next page I display all the states in all the countries using a
> CheckBoxTreeViewer. I am adding up relevant objects in getInitialInput()
> method of the individual page. Everything is static here.
> Now I want that user should select one country on the first page and on
> the next page, states only from the selected country be displayed.

> I am handling country selection but I have no idea how to populate objects
> in the next page after my selection on the first page. And even if I add
> the required objects, how do I tell the next wizard page to display the
> elements I added right now ? Basically how do I call the getInitialInput()
> method of the second page only after my selection on the first page ? Do
> we have any method of populating the checkbox tree based on conditions
> with respect to Wizard Page?
Previous Topic:How to pop-up a message before closing the editor
Next Topic:Underlining Fonts in SWT 3.0 M7/Linux/GTK
Goto Forum:
  


Current Time: Fri Apr 19 23:29:55 GMT 2024

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

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

Back to the top