Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » no visible progress-monitor with IWorkbenchSiteProgressService?
no visible progress-monitor with IWorkbenchSiteProgressService? [message #333091] Tue, 25 November 2008 15:26 Go to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
WinXP; R3.4.1

In our RCP, I have a part (View) within which I launch a Job
"computeJob", during which I would like some sort of progress indication.

(Note: in order for the part's UI to be useful, the job must complete;
the "computeJob" does non-UI computation and then refreshes the UI --
using an asyncExec() -- to show the results).

a) schedule()'ing the job causes it to run, all fine, but the
progress-monitor that is supplied to run() is the NullProgressMonitor,
so no progress-indication is displayed.

b) attempting to use as follows (as recommended by the Help) shows the
busy-while cursor, all fine, but still no progress-monitor:

<code>
IWorkbenchSiteProgressService siteService =
(IWorkbenchSiteProgressService) getSite().getAdapter(
IWorkbenchSiteProgressService.class);
siteService.schedule(computeJob, 100, true);
</code>

====

So how do I do that?

thanks,
Paul
Re: no visible progress-monitor with IWorkbenchSiteProgressService? [message #333099 is a reply to message #333091] Tue, 25 November 2008 21:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: formatzeh.gmx.de

If you call setUser(true) befor scheduling it, it will be run as a
user-initiated job. By that the normal ProgressMonitor, which you know
from other standard Eclipse-jobs, will be shown.
Re: no visible progress-monitor with IWorkbenchSiteProgressService? [message #333291 is a reply to message #333099] Wed, 03 December 2008 14:24 Go to previous message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
Gilbert Mirenque wrote:
> If you call setUser(true) befor scheduling it, it will be run as a
> user-initiated job. By that the normal ProgressMonitor, which you know
> from other standard Eclipse-jobs, will be shown.

Right, I had forgotten about setUser(); thanks. However, in an RCP, it
doesn't seem to make any difference. ...

-Paul
Previous Topic:How to prevent a non-java file from being copied to the /bin folder
Next Topic:MultiPageEditorPart with Tree page loses context menu on page change
Goto Forum:
  


Current Time: Thu Apr 25 19:16:10 GMT 2024

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

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

Back to the top