Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Progress Groups
Progress Groups [message #449783] Fri, 19 May 2006 06:57 Go to next message
Eclipse UserFriend
In a wizard dialog I want to run a job that uses the dialogs progress
bar. I know how to do this.

My wizard fires off several concurrent jobs to search different
databases. Is there any way I can run these concurrently, and allow them
all to provide feedback to the progress bar of the dialog?

I read about job.setProgressGroup(), but from the javadoc I understand
that the monitor must be created by:

IJobManager jobMan = Platform.getJobManager();
myGroup = jobMan.createProgressGroup();

Does this mean I cannot use the dialog's progress monitor as a group
monitor?

Any help, or direction will be much appreciated.
Thanks.
Adrian
Re: Progress Groups [message #449814 is a reply to message #449783] Fri, 19 May 2006 10:40 Go to previous messageGo to next message
Eclipse UserFriend
Yes, that's what it means. The progress group feature is fairly
rudimentary and really only covers the case where you want to combine
multiple jobs into a single entry in the progress view. What you could
do is something like this:

1) Launch the jobs from the wizard runnable
2) Join on those jobs in a non-blocking fashion (join takes an int wait
time).
3) Update the progress message as appropriate while waiting for the
background work to complete.

You could block in step 2 but then the progress message would be
something like "waiting for N items to complete" which isn't terribly
user friendly.

Michael

Adrian wrote:
> In a wizard dialog I want to run a job that uses the dialogs progress
> bar. I know how to do this.
>
> My wizard fires off several concurrent jobs to search different
> databases. Is there any way I can run these concurrently, and allow them
> all to provide feedback to the progress bar of the dialog?
>
> I read about job.setProgressGroup(), but from the javadoc I understand
> that the monitor must be created by:
>
> IJobManager jobMan = Platform.getJobManager();
> myGroup = jobMan.createProgressGroup();
>
> Does this mean I cannot use the dialog's progress monitor as a group
> monitor?
>
> Any help, or direction will be much appreciated.
> Thanks.
> Adrian
Re: Progress Groups [message #449815 is a reply to message #449814] Fri, 19 May 2006 11:03 Go to previous message
Eclipse UserFriend
Michael Valenta wrote:
> Yes, that's what it means. The progress group feature is fairly
> rudimentary and really only covers the case where you want to combine
> multiple jobs into a single entry in the progress view. What you could
> do is something like this:
>
> 1) Launch the jobs from the wizard runnable
> 2) Join on those jobs in a non-blocking fashion (join takes an int wait
> time).
> 3) Update the progress message as appropriate while waiting for the
> background work to complete.
>
> You could block in step 2 but then the progress message would be
> something like "waiting for N items to complete" which isn't terribly
> user friendly.
>
> Michael
>
> Adrian wrote:
>
>> In a wizard dialog I want to run a job that uses the dialogs progress
>> bar. I know how to do this.
>>
>> My wizard fires off several concurrent jobs to search different
>> databases. Is there any way I can run these concurrently, and allow
>> them all to provide feedback to the progress bar of the dialog?
>>
>> I read about job.setProgressGroup(), but from the javadoc I understand
>> that the monitor must be created by:
>>
>> IJobManager jobMan = Platform.getJobManager();
>> myGroup = jobMan.createProgressGroup();
>>
>> Does this mean I cannot use the dialog's progress monitor as a group
>> monitor?
>>
>> Any help, or direction will be much appreciated.
>> Thanks.
>> Adrian

Thanks. Will give it a go!
Previous Topic:launching another Java app from within an RCP app
Next Topic:Toolbar contributions from a plugin in a RCP Application
Goto Forum:
  


Current Time: Mon Sep 01 02:02:00 EDT 2025

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

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

Back to the top