Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to execute a Job allways in background
How to execute a Job allways in background [message #461390] Wed, 10 January 2007 06:38 Go to next message
Eclipse UserFriend
Originally posted by: florianwendland.freenet.de

Hi all,

I've tried some things with the Job API, by using the article at
http://www.eclipse.org/articles/Article-Concurrency/jobs-api .html
.. Works fine. But now, I want to run a Job (e.g. a save action) allways
in background by default. Is this possible?

I found nothing about it in the article, eclipsepedia or the API.

Thx

Florian Wendland
Re: How to execute a Job allways in background [message #461394 is a reply to message #461390] Wed, 10 January 2007 07:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

what do you mean by "in background by default"?

If you think of a job which runs in background without a UI comming up, you
can use

yourJob.setSystem(true);

Greetz,
Carsten


"Florian Wendland" <florianwendland@freenet.de> schrieb im Newsbeitrag
news:eo2j7k$610$1@utils.eclipse.org...
> Hi all,
>
> I've tried some things with the Job API, by using the article at
> http://www.eclipse.org/articles/Article-Concurrency/jobs-api .html
> . Works fine. But now, I want to run a Job (e.g. a save action) allways in
> background by default. Is this possible?
>
> I found nothing about it in the article, eclipsepedia or the API.
>
> Thx
>
> Florian Wendland
Re: How to execute a Job allways in background [message #461501 is a reply to message #461394] Wed, 10 January 2007 16:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: florianwendland.freenet.de

Hi Carsten,

no, this was not exactly what I mean. I only want the UI progress bar by
default in the Status Line and no Dialog coming uo, in which the user
can decide whether this job has to run in background or not.

Hope this explanation makes sense.

Thx
Re: How to execute a Job allways in background [message #461536 is a reply to message #461501] Thu, 11 January 2007 11:46 Go to previous messageGo to next message
Eclipse UserFriend
Try Job.setUser(false).
--

Florian Wendland wrote:
> no, this was not exactly what I mean. I only want the UI progress bar by
> default in the Status Line and no Dialog coming uo, in which the user
> can decide whether this job has to run in background or not.
Re: How to execute a Job allways in background [message #461570 is a reply to message #461536] Fri, 12 January 2007 10:46 Go to previous message
Eclipse UserFriend
Originally posted by: florianwendland.freenet.de

Thanks John, that was a good hint.
Previous Topic:Graphical editor start problem - setFocus
Next Topic:Show_View-Action allways disabled
Goto Forum:
  


Current Time: Fri Mar 21 17:47:49 EDT 2025

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

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

Back to the top