Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Virtual JFace Viewers - add(Objects[])
Virtual JFace Viewers - add(Objects[]) [message #328703] Mon, 02 June 2008 10:29 Go to next message
Eclipse UserFriend
Hi there,

I am using Virtual TableViewer. According to

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet029VirtualTableViewer.java?view=markup


it should be possible to have a virtual viewer supporting sorting. The
required condition is to use a StructuredContentProvider and not A Lazy
one.

It seems to work when using the set input method nevertheless I have some
troubles when using the Viewer.add(Objects[] objects) method. According to
this method specification elements should be inserted at the right
position if there is an associated Comparator. In my case elements are
appended at the end of the viewer and the appended elements are not the
good ones : they are "copy" of the existing elements.

Before opening a bugzilla entry and because I think I missed something
from my side I want to know if anybody already encountered such a problem
? Any help / comments / suggestion is welcomed ;o)

Regards

Manu
Re: Virtual JFace Viewers - add(Objects[]) [message #328704 is a reply to message #328703] Mon, 02 June 2008 10:33 Go to previous message
Eclipse UserFriend
Please give me a snippet to test.

Tom

Manuel Selva schrieb:
> Hi there,
>
> I am using Virtual TableViewer. According to
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet029VirtualTableViewer.java?view=markup
>
>
> it should be possible to have a virtual viewer supporting sorting. The
> required condition is to use a StructuredContentProvider and not A Lazy
> one.
> It seems to work when using the set input method nevertheless I have
> some troubles when using the Viewer.add(Objects[] objects) method.
> According to this method specification elements should be inserted at
> the right position if there is an associated Comparator. In my case
> elements are appended at the end of the viewer and the appended elements
> are not the good ones : they are "copy" of the existing elements.
>
> Before opening a bugzilla entry and because I think I missed something
> from my side I want to know if anybody already encountered such a
> problem ? Any help / comments / suggestion is welcomed ;o)
>
> Regards
>
> Manu
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:Can I open several workspaces with one running Eclipse instance
Next Topic:FileTransfer drag and drop (dnd) from remote server to Windows Explorer
Goto Forum:
  


Current Time: Tue Apr 29 01:55:50 EDT 2025

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

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

Back to the top