|how to add a double-click listener on TableViewer column header [message #643866]
||Wed, 08 December 2010 14:22
| Arnaud MERGEY
Registered: March 2010
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 ?
Powered by FUDForum
. Page generated in 0.21263 seconds