how to add a double-click listener on TableViewer column header [message #643866] |
Wed, 08 December 2010 14:22 |
Arnaud MERGEY Messages: 243 Registered: March 2010 Location: France |
Senior Member |
|
|
Hello,
My goal is to implement an "autofit witdh" feature for column, when a user double-click on it, in a TableViewer.
I know Nebula grid offer such autofit feature but I cannot use it because I am in RAP.
It is quite easy to implement as soon as there is a way to add a listener to be able to handle double-click event on a TableViewer column header.
I didn't find anything for this, so I'm wondering if it is possible to
add listener for double-click event on column header.
There are already similar questions here, but with no answer
I tried TableColumn.addListener(SWT.MouseDoubleClick, listener) but it doesn't work.
Any suggestion ?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.02929 seconds