no visible progress-monitor with IWorkbenchSiteProgressService? [message #333091] |
Tue, 25 November 2008 15:26 |
Paul E. Keyser 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03775 seconds