Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to start a TableCellEditor with doubleclick?
How to start a TableCellEditor with doubleclick? [message #466312] Fri, 06 January 2006 10:13 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,

My question is, if it is possible to force a TableViewer to start cell
editing by doubleclick rather than a simple click. I find it annoying that
my TextCellEditor starts editing while i just wanted to select a row.
Another thing disturbing is that CellModifier#modify is called whether or
not the celleditor was dirty. If there are any solutions to my questions
or if they might be solved by future releases of SWT please tell me.

Regards,
Nicos
Re: How to start a TableCellEditor with doubleclick? [message #466343 is a reply to message #466312] Fri, 06 January 2006 20:20 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
TableViewer is a JFace component. You will probably get a better answer to
this question in the eclipse.platform newsgroup:

news://news.eclipse.org/eclipse.platform

If you are just using SWT Table, you can listen for the double click event
and activate your TableEditor however you want. See:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet88.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup


"Nicos Tegos" <teg-man@web.de> wrote in message
news:0f8f02251bd85d091c6347122999c02b$1@www.eclipse.org...
> Hello,
>
> My question is, if it is possible to force a TableViewer to start cell
> editing by doubleclick rather than a simple click. I find it annoying that
> my TextCellEditor starts editing while i just wanted to select a row.
> Another thing disturbing is that CellModifier#modify is called whether or
> not the celleditor was dirty. If there are any solutions to my questions
> or if they might be solved by future releases of SWT please tell me.
>
> Regards,
> Nicos
>
Previous Topic:How to change the usual button look&feel to window xp button look&feel
Next Topic:questions about laying out widgets
Goto Forum:
  


Current Time: Tue Apr 23 06:09:40 GMT 2024

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

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

Back to the top