Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Eclipse Jobs to populate an SWT table (How should i use Eclipse Jobjs to populate an SWT Table with the query results from a server.)
Eclipse Jobs to populate an SWT table [message #641147] Wed, 24 November 2010 12:29 Go to next message
Saurabh Mising name is currently offline Saurabh Mising nameFriend
Messages: 21
Registered: October 2010
Junior Member
I have an SWT table in my view. When the user clicks the search button, I am supposed to Query the server for the objects of my interest and then populate the SWT table with the query result.
However, i want to query the server results in chunks of 100 objects. How can i use eclipse jobs to query from the server in chunks?
Re: Eclipse Jobs to populate an SWT table [message #641162 is a reply to message #641147] Wed, 24 November 2010 12:42 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 11/24/2010 13:29, Saurabh wrote:
> I have an SWT table in my view. When the user clicks the search button,
> I am supposed to Query the server for the objects of my interest and
> then populate the SWT table with the query result.
> However, i want to query the server results in chunks of 100 objects.
> How can i use eclipse jobs to query from the server in chunks?

Assuming you are using a non-UI job (which I would recommend here), you
could invoke Display.asyncExec after each successful chunk retrieval to
refresh your table content.

HTH & Greetings from Bremen

Daniel Krügler
Previous Topic:First headless build with p2.gathering=true
Next Topic:Using specific selection to enable/disable commands
Goto Forum:
  


Current Time: Mon Nov 24 22:52:10 GMT 2014

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

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