|SWT.VIRTUAL TableViewer not sorting [message #462908]
||Thu, 20 October 2005 22:22
Originally posted by: mark_z.charter.net|
I'm having an issue getting a TableViewer using SWT.VIRTUAL to properly sort
the items. What I've noticed is that in TableViewer, the
indexForElement(Object) method always ends up comparing the element to be
inserted against null ("data").
I've gotten this to work as expected using a non-virtual TableViewer. I've
can also get a virtual Table to work, similar to Snippet151, without the use
of a TableViewer.
I posted a sample demonstrating the issue:
http://www.ziesemer.com/SwtSortedVirtualTableViewerIssue.jav a . Hopefully
everything was written correctly - I was unable to find any documentation
regarding SWT.VIRTUAL support on the TableViewer other than in the source
code. (Another snippet on the SWT site for this would probably be useful!)
I'm making use of an ILazyContentProvider, however my updateElement(int)
method is never even being called. Not even an explicit refresh() against
the viewer after the additions helps.
Is this my problem, or bug-worthy? Thanks!
Mark A. Ziesemer
Powered by FUDForum
. Page generated in 0.02002 seconds