[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] SWT.VIRTUAL TableViewer not sorting

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.java .  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