Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT.VIRTUAL TableViewer not sorting
SWT.VIRTUAL TableViewer not sorting [message #462908] Thu, 20 October 2005 22: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 19:40 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
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: Sat Dec 20 05:54:12 GMT 2014

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

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