Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Eclipse RCP(Jobs API vs Threads)
Eclipse RCP [message #634781] Sat, 23 October 2010 13:57 Go to next message
Jack Higgins is currently offline Jack HigginsFriend
Messages: 2
Registered: October 2010
Junior Member
Hi,

I am writing an application using Eclipse RCP. I am trying to avoid running running all my processing from the main UI thread as it "freezes" the GUI.

Therefore, I was wondering if its best to make use of the Jobs API rather than creating seperate threads for long running tasks ?

I have prototyoed using the Jobs api and I have to say its very easy to use.

Now Im just wondering whats the best approach for me to take (threads or jobs ) ?

Thanks for your time,
Jack.
Re: Eclipse RCP [message #634914 is a reply to message #634781] Mon, 25 October 2010 06:49 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 23.10.2010 15:57, Jack Higgins wrote:
> Hi,
>
> I am writing an application using Eclipse RCP. I am trying to avoid
> running running all my processing from the main UI thread as it
> "freezes" the GUI.
>
> Therefore, I was wondering if its best to make use of the Jobs API
> rather than creating seperate threads for long running tasks ?
>
> I have prototyoed using the Jobs api and I have to say its very easy to
> use.
> Now Im just wondering whats the best approach for me to take (threads or
> jobs ) ?

I think you should Jobs instead of Threads whenever you can. They
allow direct pooling via the Job manager and they are directly
integrated within the progress-reporting API of Eclipse RCP. You
will need to keep Threads, when your code is and should be independent
from Eclipse, though.

HTH & Greetings from Bremen,

Daniel Krügler
Previous Topic:GEF AND EMF
Next Topic:Table Double Click another view has to Change
Goto Forum:
  


Current Time: Tue Dec 23 02:20:13 GMT 2014

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

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