Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » how to add a double-click listener on TableViewer column header
how to add a double-click listener on TableViewer column header [message #643866] Wed, 08 December 2010 14:22
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 220
Registered: March 2010
Location: France
Senior Member

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 ?

Previous Topic:StructuredViewer useHashlookup
Next Topic:Set Selection on Tree Viewer
Goto Forum:

Current Time: Thu Apr 19 23:41:58 GMT 2018

Powered by FUDForum. Page generated in 0.01854 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software