Skip to main content



      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
Eclipse UserFriend


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
Eclipse UserFriend
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: Wed Jul 23 03:03:07 EDT 2025

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

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

Back to the top