[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Re: Problem with selection of widget in tableviewer
|
Hi,
I'd say use StyledTextLabelProvider (you'll need 3.4) which uses owner
draw and draw a text that looks like a link :-). Afterwards register a
MouseListener on the Table and calculate if the link is pressed.
If you are on 3.3 you'll need to use an OwnerDrawLabelProvider instead
and to all the hard work your own.
You can find example for all the mentioned stuff at:
http://wiki.eclipse.org/JFaceSnippets
Tom
Lene schrieb:
Hi,
I've added a Link-widget to a table (tableViewer). When I press the link
I need too no which row (FULL_SELECTION on table) was pressed in the
table. The tableViewer.getSelection() is not updated when I press the
link. How can I find which row the link is related to?
I can switch to another widget in the table if someone has a better
suggestion.But I do want to add the widget to each row in the table.
Thanks
-Lene
--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl JFace-Committer
--------------------------------------------------------------------