|
Re: JFace TableViewer not updating edited cell [message #440884 is a reply to message #440672] |
Mon, 09 August 2004 11:45 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03066 seconds