[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Very fast Job leaves behind two entries in progress viewer

Hi there,

I have a curious problem here using Eclipse Jobs for background data processing. If I have a job that finishes very very quickly (before I can even see the modal progress/cancel dialog) and I set the Job's IProgressConstants.KEEP_PROPERTY to true, then I end up with two (yes, TWO) entries in the standard eclipse progress viewer. There should be only one, though.

Having added a Thread.wait(500) at the beginning of my run() method, I see the problem going away.

Have consulted this: http://www.eclipse.org/articles/Article-Concurrency/jobs-api.html -- what might I be missing?

Cheers,
Joerg