Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » TreeViewer and VIRTUAL style
TreeViewer and VIRTUAL style [message #327114] Thu, 10 April 2008 04:42 Go to next message
Eclipse UserFriend
Hi here,

I am investigating on JFace's viewers with large amount of data (about 60
000 entries).

I performed some test with TableViewer using:

+ an IStructuredContentProvider
+ an IStructuredContentProvider with SWT.VIRTUAL
+ an ILazyContentProvider with SWT.VIRTUAL

The 2 last solutions are fastest than the previous one when setting an
input generating 60 000 rows. They are "equivalent" since the 60 000
entries retreival from the input is direct and very fast. Here the
bottleneck is the UI (creation of table items i think ..) and not the
model.

The last solution disable the sorting of table ... bad news since i need
sorting.

I was thinking that things will be the same for TreeViewer but it's not.
Setting SWT.VIRTUAL on a TreeViewer without a Lazy content provider is
useless.

So my question is : is there any way to have a TreeViewer with VIRTUAL
support and Sorting ?

Note: My tree viewer mainly contains root objects, it's nearly a Table
expected 1% of the rows ...

Thanks in advance

Manu
Re: TreeViewer and VIRTUAL style [message #327115 is a reply to message #327114] Thu, 10 April 2008 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Manuel Selva schrieb:
> Hi here,
>
> I am investigating on JFace's viewers with large amount of data (about
> 60 000 entries).
>
> I performed some test with TableViewer using:
>
> + an IStructuredContentProvider
> + an IStructuredContentProvider with SWT.VIRTUAL
> + an ILazyContentProvider with SWT.VIRTUAL
>
> The 2 last solutions are fastest than the previous one when setting an
> input generating 60 000 rows. They are "equivalent" since the 60 000
> entries retreival from the input is direct and very fast. Here the
> bottleneck is the UI (creation of table items i think ..) and not the
> model.
>
> The last solution disable the sorting of table ... bad news since i need
> sorting.
>
> I was thinking that things will be the same for TreeViewer but it's not.
> Setting SWT.VIRTUAL on a TreeViewer without a Lazy content provider is
> useless.
>
> So my question is : is there any way to have a TreeViewer with VIRTUAL
> support and Sorting ?
>

No it's not sorting is not possible for a VIRTUAL-TreeViewer whether you
use a IStructuredContentProvider or a lazy one. TableViewer supports
this since 3.3 and there's a bug report requesting the same feature for
TreeViewer but there's no ready implementation yet.

Tom
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: TreeViewer and VIRTUAL style [message #327245 is a reply to message #327114] Mon, 14 April 2008 09:56 Go to previous message
Eclipse UserFriend
You will have to do the sorting yourself (in your model). The underlying
assumption is that the elements might not even be in memory.

Boris

"Manuel Selva" <manuel.selva@st.com> wrote in message
news:03def40e27a737bbbc88412c9b043b6f$1@www.eclipse.org...
> Hi here,
>
> I am investigating on JFace's viewers with large amount of data (about 60
> 000 entries).
>
> I performed some test with TableViewer using:
>
> + an IStructuredContentProvider
> + an IStructuredContentProvider with SWT.VIRTUAL
> + an ILazyContentProvider with SWT.VIRTUAL
>
> The 2 last solutions are fastest than the previous one when setting an
> input generating 60 000 rows. They are "equivalent" since the 60 000
> entries retreival from the input is direct and very fast. Here the
> bottleneck is the UI (creation of table items i think ..) and not the
> model.
>
> The last solution disable the sorting of table ... bad news since i need
> sorting.
>
> I was thinking that things will be the same for TreeViewer but it's not.
> Setting SWT.VIRTUAL on a TreeViewer without a Lazy content provider is
> useless.
>
> So my question is : is there any way to have a TreeViewer with VIRTUAL
> support and Sorting ?
>
> Note: My tree viewer mainly contains root objects, it's nearly a Table
> expected 1% of the rows ...
>
> Thanks in advance
>
> Manu
>
>
Previous Topic:Eclipse Tabs
Next Topic:Running Eclipse 1.0 - Got JRE 1.3?
Goto Forum:
  


Current Time: Wed Mar 19 09:47:23 EDT 2025

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

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

Back to the top