Skip to main content



      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 18:41 Go to next message
Eclipse UserFriend
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 10:11 Go to previous message
Eclipse UserFriend
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: Tue Jul 08 02:16:21 EDT 2025

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

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

Back to the top