Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT.VIRTUAL TableViewer not sorting
SWT.VIRTUAL TableViewer not sorting [message #462908] Thu, 20 October 2005 18:22 Go to next message
Eclipse UserFriend
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
Re: SWT.VIRTUAL TableViewer not sorting [message #463396 is a reply to message #462908] Fri, 04 November 2005 14:40 Go to previous message
Eclipse UserFriend
TableViewer is JFAce. Try asking the question again in eclipse.platform.

"Mark A. Ziesemer" <mark_z@charter.net> wrote in message
news:dj95ag$5a7$1@news.eclipse.org...
> 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
>
>
Previous Topic:clipboard content not up to date
Next Topic:Root TreeITem without Expand-Button and Lines
Goto Forum:
  


Current Time: Tue Jul 22 17:45:38 EDT 2025

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

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

Back to the top