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:


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.
Previous Topic:Open Editor with particular resource, e.g. 'plugin.xml'
Next Topic:Latest SWT Integration Builds fail JUnit tests?
Goto Forum:

Current Time: Wed Mar 03 03:37:01 GMT 2021

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

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

Back to the top