Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » JFace Sorting problem.
JFace Sorting problem. [message #297345] Thu, 12 January 2006 04:31 Go to next message
Eclipse UserFriend
Originally posted by: steve.x.lane.jpmchase.com

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: JFace Sorting problem. [message #297375 is a reply to message #297345] Thu, 12 January 2006 10:35 Go to previous message
Eclipse UserFriend
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=110923,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=111499, or
https://bugs.eclipse.org/bugs/show_bug.cgi?id=117807.

This is a wild guess, but worth a try: does this bug happen as well if you
implement IViewerLabelProvider instead of ILabelProvider?

Boris.

"steve lane" <steve.x.lane@jpmchase.com> schrieb im Newsbeitrag
news:5ea49e6b509458fc0590bb47b3dbb11a$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:Left ruler loaded on a plugin editor
Next Topic:New Editor - Linking them ?
Goto Forum:
  


Current Time: Thu May 08 18:03:41 EDT 2025

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

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

Back to the top