Skip to main content


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: 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

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


Current Time: Wed Apr 24 20:26:02 GMT 2024

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

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

Back to the top