Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT + TableViewer + Retrieve Table Data
XWT + TableViewer + Retrieve Table Data [message #565587] Tue, 08 December 2009 21:15
Walter Mising name is currently offline Walter Mising name
Messages: 126
Registered: July 2009
Senior Member
Have used XWT.open to show a Collection in a TableViewer.
When the user clicks on a menu item, I need to have access to the data to persist.
What is the best way to achieve this ?

Thanks
- Walter.
Re: XWT + TableViewer + Retrieve Table Data [message #565648 is a reply to message #565587] Tue, 08 December 2009 11:48 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
You can give a name to the TableViewer, and use
XWT.findElementByName(context, "<name>") and then you can get the collection
by calling getInput().

Best regards
Yves YANG
"Walter" <kwchess@gmail.com> wrote in message
news:hfn181$8sp$1@build.eclipse.org...
> Have used XWT.open to show a Collection in a TableViewer.
> When the user clicks on a menu item, I need to have access to the data to
> persist.
> What is the best way to achieve this ?
>
> Thanks
> - Walter.
>
Previous Topic:XWT + CDO + Refresh
Next Topic:XWT + TableViewer + Handler + open vs load Behaviour
Goto Forum:
  


Current Time: Wed Jul 23 12:09:30 EDT 2014

Powered by FUDForum. Page generated in 0.03572 seconds