Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Using setData when there is a viewer
Using setData when there is a viewer [message #452728] Wed, 23 March 2005 20:54
Eclipse UserFriend
Originally posted by: mchin.ll.mit.edu

Hi,

I have a TableTreeViewer, whose input is set to
some data model which is comprised of different
types of objects. When a user clicks on a cell
I would like to get the type of object that the
displayed text came from. So the perfect place
to store this information seems to be to use setData()
on each TableItem. If this is the right track,
how do I do that if all I needed to provide the
viewer is the starting point of the data model,
which by the way, is displaying the data, but now
I need to do specific things depending on which
object/row/cell the user clicks on...

Thank you in advance.
Mel
Previous Topic:Open Editor with particular resource, e.g. 'plugin.xml'
Next Topic:Latest SWT Integration Builds fail JUnit tests?
Goto Forum:
  


Current Time: Sun Nov 17 05:21:30 GMT 2019

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

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

Back to the top