Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » int a tableview with image in the cell, table always jump back to the first row.(int a tableview with image in the cell, table always jump back to the first row.)
int a tableview with image in the cell, table always jump back to the first row. [message #989981] Mon, 10 December 2012 05:33 Go to next message
Lee Juu is currently offline Lee Juu
Messages: 1
Registered: December 2012
Junior Member


in a table, users can modify the content of a cell. (EditingSupport)

if the content is not correct, then a error image will appear in the front of this cell. (TableLabelProvider, will determinate this)

The problem is, when users input the wrong content(in any cell), the table will automatically jump back to the first row!! annoying

Any one who knows how to fix this? Thanks.
Re: int a tableview with image in the cell, table always jump back to the first row. [message #990039 is a reply to message #989981] Mon, 10 December 2012 11:10 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5296
Registered: July 2009
Senior Member
So how to you say the view to update it? My guess is that you call
refresh() which is wrong.

You should only call update(element,null)

Tom

Am 10.12.12 15:37, schrieb Lee Juu:
>
>
> in a table, users can modify the content of a cell. (EditingSupport)
>
> if the content is not correct, then a error image will appear in the
> front of this cell. (TableLabelProvider, will determinate this)
>
> The problem is, when users input the wrong content(in any cell), the
> table will automatically jump back to the first row!! annoying
>
> Any one who knows how to fix this? Thanks.
Previous Topic:GLCanvas does not receive paint events
Next Topic:Assertion Fail
Goto Forum:
  


Current Time: Sat Aug 30 14:38:51 EDT 2014

Powered by FUDForum. Page generated in 0.01998 seconds