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 09:22
Arnaud MERGEY is currently offline Arnaud MERGEY
Messages: 111
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:Why the label provider isn't triggered as soon as the refresh method is called?
Next Topic:Embedding images in a org.eclipse.ui.editors.text.TextEditor
Goto Forum:
  


Current Time: Sun Apr 20 09:26:29 EDT 2014

Powered by FUDForum. Page generated in 0.12060 seconds