Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace TableViewer not updating edited cell
JFace TableViewer not updating edited cell [message #440672] Thu, 05 August 2004 16:36 Go to next message
James Norris is currently offline James NorrisFriend
Messages: 52
Registered: July 2009
Member
Hi All,

I've looked in the archives and it seems like this issue has appeared before
several times but I didn't see any solution to my problem. My code is based
on the article "Building and delivering a table editor with SWT/JFace. I
can edit a cell but the new value does not replace the existing value in the
table view. As soon as I select any other cell, the original value is
shown. If I select the cell again the new value is shown and highlighted.
If I select a different cell the original value is again shown. However if
I sort the column then the new value will replace the original value in the
view. I've stepped through the code and the TableViewer.update(Object
element, String[] properties ) method is being called in the update() method
of the Content Provider as expected with the element containing the changed
value as expected. However the update on the tableViewer doesn't seem to
have any effect.

Any ideas would be greatly appreciated.

Thanks,
Jim
Re: JFace TableViewer not updating edited cell [message #440884 is a reply to message #440672] Mon, 09 August 2004 11:45 Go to previous message
Eclipse UserFriend
Originally posted by: bram.eresmas.net

Hi,
I would suggest to have a look at the CellModifier which implements the
ICellModifier for your TableViewer. I had the same problem updating the
cell for a combo Box and I cannnot remember exactly, but I think the
problem was in the CellModifier. Take a look at the modify method.


good luck,

bramez


Jim Norris wrote:

> Hi All,

> I've looked in the archives and it seems like this issue has appeared before
> several times but I didn't see any solution to my problem. My code is based
> on the article "Building and delivering a table editor with SWT/JFace. I
> can edit a cell but the new value does not replace the existing value in the
> table view. As soon as I select any other cell, the original value is
> shown. If I select the cell again the new value is shown and highlighted.
> If I select a different cell the original value is again shown. However if
> I sort the column then the new value will replace the original value in the
> view. I've stepped through the code and the TableViewer.update(Object
> element, String[] properties ) method is being called in the update() method
> of the Content Provider as expected with the element containing the changed
> value as expected. However the update on the tableViewer doesn't seem to
> have any effect.

> Any ideas would be greatly appreciated.

> Thanks,
> Jim
Previous Topic:SWT Table - Synchronized Scrolling
Next Topic:TreeViewer always scrolls down
Goto Forum:
  


Current Time: Mon Sep 23 02:39:38 GMT 2024

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

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

Back to the top