Progress view not updating [message #648008] |
Mon, 10 January 2011 13:10  |
Eclipse User |
|
|
|
Hi,
I am searching bugzilla and google but do not find any solution or hint.
In general my code works. The progress monitors are working, done() is called at the end.
But sometimes, a starting job does not show up in the progress view until I refresh the GUI somehow manually. E.g. I press the "Remove All Finished Operations" button.
After that the running job immediately is show with its running progressbar.
Same can happen at the end of the job. Then the progress bar is show somewhere near complete and stays there until it press again the button or another job is started.
I start the job like this:
job.setUser(false);
job.schedule();
The progressview is added with this:
<extension
point="org.eclipse.ui.views">
<view
allowMultiple="false"
category="org.eclipse.ui"
class="org.eclipse.ui.ExtensionFactory:progressView"
icon="icons/pview.gif"
id="org.eclipse.ui.views.ProgressView"
name="Progress View"
restorable="true">
</view>
and then in the Perspective.java:
IFolderLayout lowerFolder = layout.createFolder("progress", IPageLayout.BOTTOM, 0.75f, ViewLogging.ID );
lowerFolder.addView(ID_PROGRESSVIEW);
It seems to me, this happens more likely at the first running job.
Can anyone help?
Regards
Frank
|
|
|
|
Re: Progress view not updating [message #648425 is a reply to message #648234] |
Wed, 12 January 2011 16:04  |
Eclipse User |
|
|
|
Its still strange, in the example posted above, I can make it work by inserting this line to ApplicationWorkbenchWindowAdviso.preWindowOpen()
configurer.setShowProgressIndicator(true);
If inserted, the progress is shown by the first start of the job. If the line is removed, it is shown only at the second start and following.
However in my real application, the "configurer.setShowProgressIndicator(true);" is active all the time.
|
|
|
Powered by
FUDForum. Page generated in 0.04474 seconds