Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Delayed second click = Edit cell for TableViewer
Delayed second click = Edit cell for TableViewer [message #524975] Mon, 05 April 2010 00:29 Go to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi,

the default editing behaviour of cell editors for a TableViewer cause conflicts with the
popup menu very quickly (user clicks into a cell to select it, but it eagerly starts
editing, user right-clicks then and you see the context menu of the text field instead of
the table row). I'd like to change this behaviour to: only when you do a second click
after some delay in an already selected cell, the editing starts (as the native controls
on most operating systems do). Is this possible with JFace?

Greetings,

Ralf


--
http://www.ralfebert.de/blog/
http://twitter.com/ralfebert/
Re: Delayed second click = Edit cell for TableViewer [message #525004 is a reply to message #524975] Mon, 05 April 2010 09:31 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You control this by installing ColumnViewerEditorActivationStrategy like
e.g.
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet026TreeViewerTabEditing.java?view=markup

The above one uses an DoubleClick strategy but you can do as many clever
things as you want.

Tom

Am 05.04.10 02:29, schrieb Ralf Ebert:
> Hi,
>
> the default editing behaviour of cell editors for a TableViewer cause
> conflicts with the popup menu very quickly (user clicks into a cell to
> select it, but it eagerly starts editing, user right-clicks then and you
> see the context menu of the text field instead of the table row). I'd
> like to change this behaviour to: only when you do a second click after
> some delay in an already selected cell, the editing starts (as the
> native controls on most operating systems do). Is this possible with JFace?
>
> Greetings,
>
> Ralf
>
>
Previous Topic:Question about TextCellEditor's text control
Next Topic:Widget transparency
Goto Forum:
  


Current Time: Tue Apr 23 09:36:15 GMT 2024

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

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

Back to the top