Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » issue with progress view
issue with progress view [message #323997] Tue, 15 January 2008 20:48 Go to previous message
Eclipse UserFriend
Originally posted by: mail.volker-wegert.de

Hi,

I'm seeing a strange issue with the progress view... I'm starting a series of
long-running background jobs (typically up to 3 minutes). All of these jobs
are instances of the same class. I only want one of these jobs to be run at a
time because they require the same resource and might cause trouble when run
in parallel threads. In order to get this done, I consulted the manual and did
something that may or may not be a good idea... Basically, my job class
implements ISchedulingRule and sets itself as its scheduling rule in the
constructor. The contains() implementation simply checks whether the parameter
is identical to the object itself (since my jobs can't be nested), and the
isConflicting() method checks whether the parameter is an instance of the job
class. While this works perfectly, the progress view behaves in a strange
way...

Let's assume I start 10 jobs. The first job will appear in the progress view
and start running, I can observe its progress. Another job will appear below
it in state "waiting" - but that's not necessarily the second one, it might
also be job number 4. The progress view never shows more than two entries over
the entire duration of this experiment. Now when job 1 is finished, it
disappears from the progress view and the next job starts. This is not
necessarily job 2 (I don't expect it to be), and it's not necessarily the one
that's left in the progress view (I don't expect this either). While I can see
that the job is running in the status bar, it doesn't appear in the progress
view - the view only contains job number 4 that is still waiting. Closing the
view and opening it again makes the job that is currently running appear with
at most one in state waiting below it - and the story commences all over
again.

Is this a bug worth reporting or did I do something terribly stupid? If so,
what could that be?

Thanks
Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
* "Es gibt Unternehmen, die werden mit Konsequenz geführt. Konsequent in
* den Ruin." (Mittagsgast im "Da Mario" in Rotenburg)
*
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:PreferencePage,call RestoreDefaults programmatically ?!
Next Topic:Problems using activities to hide perspectives from Open Perspective window
Goto Forum:
  


Current Time: Fri Sep 20 10:08:23 GMT 2024

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

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

Back to the top