Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » sort redraw problem 8-(
sort redraw problem 8-( [message #466567] Wed, 11 January 2006 18:16 Go to next message
steve lane is currently offline steve laneFriend
Messages: 24
Registered: July 2009
Junior Member
Help ! I have a UAT release tomorrow and my code isnt doing what it should
! I have some sorting which works fine, it sorts the data and redraws
automatically (im using jfaces).

i sort like this:

put a selection listener on each column and call the setSorter method for
my table viewer passing in the label provider. works a treat ... but, my
label provider implements the getColumnImage as well as getColumnText as
my first 2 cols have an image.

The problem i have is, when the sorting is done, the screen hasnt
re-drawn properly for my image columns. If i drag the column width
slightly or move to a different screen and back, i.e force a redraw, it
looks fine. But im not sure how to force the re-draw after the sorting.
Also, if i put some debug statements into my getImage, it works
correctly !!! grrrr !!!! What am i doing wrong.

thanks,

steve.
Re: sort redraw problem 8-( [message #466580 is a reply to message #466567] Wed, 11 January 2006 19:41 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
To geta faster response, ask this JFace question in the eclipse.platform
newsgroup - this is where the JFace owners regularly hang out.

"steve lane" <steve.x.lane@jpmchase.com> wrote in message
news:c38c00a42b6f6d9d675f4462686c67de$1@www.eclipse.org...
>
> Help ! I have a UAT release tomorrow and my code isnt doing what it should
> ! I have some sorting which works fine, it sorts the data and redraws
> automatically (im using jfaces).
>
> i sort like this:
>
> put a selection listener on each column and call the setSorter method for
> my table viewer passing in the label provider. works a treat ... but, my
> label provider implements the getColumnImage as well as getColumnText as
> my first 2 cols have an image.
> The problem i have is, when the sorting is done, the screen hasnt
> re-drawn properly for my image columns. If i drag the column width
> slightly or move to a different screen and back, i.e force a redraw, it
> looks fine. But im not sure how to force the re-draw after the sorting.
> Also, if i put some debug statements into my getImage, it works
> correctly !!! grrrr !!!! What am i doing wrong.
>
> thanks,
>
> steve.
>
Previous Topic:Yet another problem with labels
Next Topic:TabItem
Goto Forum:
  


Current Time: Sun Dec 08 18:55:17 GMT 2024

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

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

Back to the top