Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Running a job in the same thread
Running a job in the same thread [message #444626] Fri, 17 February 2006 19:57 Go to next message
Eclipse UserFriend
How can I run a job in the same thread that executes it?

Thanks a lot
Re: Running a job in the same thread [message #444734 is a reply to message #444626] Mon, 20 February 2006 05:22 Go to previous messageGo to next message
Eclipse UserFriend
> How can I run a job in the same thread that executes it?

Not sure about the Jobs API but you can call
Display.getDefault().syncExec(Runnable). But there are some issues with
this approach so read the docs carefully.

hth,

Ricky
Re: Running a job in the same thread [message #444770 is a reply to message #444626] Mon, 20 February 2006 11:39 Go to previous message
Eclipse UserFriend
By definition a job runs in the thread that executes it. Do you mean
you want to run a job in the same thread that *schedules* it? There is
no way to do this, other than refactoring the body of the job's run()
method into a separate public method, and then calling that method
instead of calling schedule().
--

Antonio Gurisatti wrote:
> How can I run a job in the same thread that executes it?
>
> Thanks a lot
Previous Topic:About Progress Monitors
Next Topic:Simple Question - How Add External Jar?
Goto Forum:
  


Current Time: Wed Jul 16 01:17:19 EDT 2025

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

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

Back to the top