Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Virtual JFace Viewers - add(Objects[])
Virtual JFace Viewers - add(Objects[]) [message #328703] Mon, 02 June 2008 14:29 Go to next message
Manuel Selva is currently offline Manuel SelvaFriend
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
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 14:33 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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: Sun Jul 07 03:02:14 GMT 2024

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

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

Back to the top