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] Wed, 09 December 2009 02:15
Walter Mising name is currently offline Walter Mising nameFriend
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 16:48 Go to previous message
Yves YANG is currently offline Yves YANGFriend
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: Sun Nov 23 02:19:53 GMT 2014

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

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