Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How can I put TableViewer and TableCursor work together?
How can I put TableViewer and TableCursor work together? [message #448610] Tue, 11 January 2005 23:41 Go to next message
andrew is currently offline andrewFriend
Messages: 8
Registered: July 2009
Junior Member
Hi there,

I tried to put TableViewer and TableCursor to work together, i found out i
can not use mouse double click to edit a
cell anymore. I was thinking to handle mouse events in TableCursor, but this
may destory the behavior of TableViewer.

Does any have some code snippet or can give me some suggestions?

Thanks

Andrew
Re: How can I put TableViewer and TableCursor work together? [message #448628 is a reply to message #448610] Wed, 12 January 2005 15:11 Go to previous message
Andy Doddington is currently offline Andy DoddingtonFriend
Messages: 17
Registered: July 2009
Junior Member
You should be OK adding a MouseListener to the TableCursor that then
creates the necessary edit widget. The javadocs for the TableCursor show
how to do this in response to the ENTER key - you can use the same code in
your mouse event handler.

Regards,

Andy D


andrew wrote:

> Hi there,

> I tried to put TableViewer and TableCursor to work together, i found out i
> can not use mouse double click to edit a
> cell anymore. I was thinking to handle mouse events in TableCursor, but this
> may destory the behavior of TableViewer.

> Does any have some code snippet or can give me some suggestions?

> Thanks

> Andrew
Previous Topic:Tutorial for development desktop database application
Next Topic:TablkeCursor fails to update when model changes
Goto Forum:
  


Current Time: Thu Apr 25 03:49:21 GMT 2024

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

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

Back to the top