Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11: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 12:34 Go to previous messageGo to next message
Carsten Spieker is currently offline Carsten SpiekerFriend
Messages: 197
Registered: July 2009
Senior Member
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 21: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 16:46 Go to previous messageGo to next message
John Arthorne is currently offline John ArthorneFriend
Messages: 176
Registered: July 2009
Senior Member
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 15: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 Apr 26 08:30:37 GMT 2024

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

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

Back to the top