Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Add a double click listener on a TableViewerColumn
Add a double click listener on a TableViewerColumn [message #900764] Wed, 08 August 2012 08:25 Go to next message
Cedric Moonen is currently offline Cedric Moonen
Messages: 269
Registered: August 2009
Senior Member
Hello,

I have a table viewer with two columns. What I would like to do is register a double click listener on the viewer but handle the double click differently if it happens in the first or the second column.
You can't register a double-click listener on a TableViewerColumn and the double-click listener on the viewer itself only contains information about the element.

Is there a way to achieve something like that ?
Re: Add a double click listener on a TableViewerColumn [message #900767 is a reply to message #900764] Wed, 08 August 2012 08:26 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5257
Registered: July 2009
Senior Member
No the SWT-Column does not provide any API for that. IIRC I implemented
double clicking on the header for Nebula-Grid.

Tom

Am 08.08.12 14:25, schrieb Cedric Moonen:
> Hello,
>
> I have a table viewer with two columns. What I would like to do is
> register a double click listener on the viewer but handle the double
> click differently if it happens in the first or the second column.
> You can't register a double-click listener on a TableViewerColumn and
> the double-click listener on the viewer itself only contains information
> about the element.
>
> Is there a way to achieve something like that ?
Previous Topic:DnD Question
Next Topic:ViewerFilter Minimize Flickering Where To Call Table.setRedraw(false)
Goto Forum:
  


Current Time: Wed Jul 30 09:13:11 EDT 2014

Powered by FUDForum. Page generated in 0.01436 seconds