Programmatically Edit TableViewer [message #652128] |
Wed, 02 February 2011 13:04  |
Eclipse User |
|
|
|
hi,
we're using TableViewer in our search records dialog.
when a column is in middle of editing mode and search action is invoked which looks up the related search records, it doesn't return records related to column editing value.
alternatively if we hit enter or click another column of the viewer and then invoke the search event gives the desired results.
this is due to column is still in editing mode and i suspect the underlying model is not updated, unless if we hit enter or click another column in the viewer.
my question is how can we commit editing value of cell editor to underlying TableViewer model programmatically ?
rgs,
sudesh
|
|
|
|
|
Re: Programmatically Edit TableViewer [message #653310 is a reply to message #652824] |
Wed, 09 February 2011 05:09  |
Eclipse User |
|
|
|
Hi Sudesh,
you´re right, in RAP this could be expensive, i didn´t know that you are using RAP.
Anyway i dont see any other approach, because you have to update your model whenever changing your UI, or you´re use the current text in the UI instead of the value in your model...
Best regards
Thomas
|
|
|
Powered by
FUDForum. Page generated in 0.03730 seconds