Running a process in background [message #281240] |
Thu, 17 February 2005 03:46  |
Eclipse User |
|
|
|
Originally posted by: bozu.hotmail.com
Hi
i would like to run a process (a saving report process)in background. I
have a viewer like the adobe acrobat and i wan to run the saving process
in background while i continue to view my pdf file. How do you do that?
And how does display.asyncExec() method works? i try to test it but it is
not running in the background. In fact, it is running in the current
thread. I want it in a separate thread. Please advice.
thanks,
bozu
|
|
|
|
Re: Running a process in background [message #281265 is a reply to message #281240] |
Thu, 17 February 2005 12:09  |
Eclipse User |
|
|
|
Originally posted by: Chris_Laffra.ca.ibm.com
Display.asyncExec runs in the main thread. This may be the "current" thread,
but it may not be.
You need asyncExec if you run outside the UI thread and need to access the
UI somehow.
For an explanation of asyncExec see:
http://www.eclipsefaq.org/chris/faq/html/faq140.html
As Rich Kulp says, Jobs are your friend for background activities:
http://www.eclipsefaq.org/chris/faq/html/faq127.html
If you really want to run another physical OS process, see
org.eclipse.swt.program.Program.launch(String)
--
Chris Laffra, http://eclipsefaq.org
"bozu" <bozu@hotmail.com> wrote in message
news:cv1lkm$3ki$1@www.eclipse.org...
> Hi
>
> i would like to run a process (a saving report process)in background. I
> have a viewer like the adobe acrobat and i wan to run the saving process
> in background while i continue to view my pdf file. How do you do that?
> And how does display.asyncExec() method works? i try to test it but it is
> not running in the background. In fact, it is running in the current
> thread. I want it in a separate thread. Please advice.
>
> thanks,
> bozu
>
|
|
|
Powered by
FUDForum. Page generated in 0.28119 seconds