I have a TreeViewer
where some cells are styled to look like links. The tree is filled with content provider and StyledCellLabelProviders
. I need to know when those specific "link" cells are hovered (so I change the mouse to the hand cursor) and clicked (so I actually do something with those "links").
I failed to find a solution, so any help will be highly appreciated.
Thanks, Oren
EDIT: More explanation
I have a tree and a treeviewer. There are 4 TreeColumns
with a TreeViewerColumn
for each. The data is filled with a content provider, and 2 types of label providers (for simple text and styled text). I need to know when the mouse is clicked on an item in the 4th column and when it hovers over it. When that happens - I need to know the cell it is clicked on, which TreeItem it belongs to, the data in this item, etc.
My problem is I can't figure this out. When I use a mouse listener, or a selection listener, they only work on the first column. I can't "reach" the 4th one.
I cannot change the column order or it won't make sense.
Any idea?