Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Progress view not updating(Bug?)
Progress view not updating [message #648008] Mon, 10 January 2011 13:10 Go to next message
Frank Benoit is currently offline Frank Benoit
Messages: 47
Registered: July 2009
Member
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 #648234 is a reply to message #648008] Tue, 11 January 2011 18:08 Go to previous messageGo to next message
Frank Benoit is currently offline Frank Benoit
Messages: 47
Registered: July 2009
Member
I created a minimal RCP app to reproduce this.

If started File->Job or F8.
The first time the progress view does not show the job, but it is running, see the printed dots on the console.
The second time it is started it works,, as it should.
I tried this on windows 7 and XP.

http://www.file-upload.net/download-3122957/ProgressProblem. zip.html


Can anyone spot the problem in my code?

Frank
Re: Progress view not updating [message #648425 is a reply to message #648234] Wed, 12 January 2011 16:04 Go to previous message
Frank Benoit is currently offline Frank Benoit
Messages: 47
Registered: July 2009
Member
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.
Previous Topic:Data Source Explorer in RCP Application
Next Topic:Hide "External Tools" action set
Goto Forum:
  


Current Time: Wed Aug 27 11:11:57 EDT 2014

Powered by FUDForum. Page generated in 0.02239 seconds