SWT.VIRTUAL TableViewer not sorting [message #462908] |
Thu, 20 October 2005 18:22  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03210 seconds