Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Progress bar of progress group disappears(The progress bar of progress group disappears in the progress view)
Progress bar of progress group disappears [message #899905] Thu, 02 August 2012 18:39
Benjamin Leipold is currently offline Benjamin LeipoldFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I would like to have the progress of multiple jobs reported in one entry in the progress view. A progress group seems to be perfect to achieve this but unfortunately the entry usually disappears from the progress view after the first job has finished. I have attached an plug-in project that shoule make this issue clear. Just click on the execute button. A progress group with ten entries is shown up in the progress view but in general will disappear after the first job has finished.

So, my question: Did I get something wrong with progress groups? If so, please tell me about the birds and the bees. Otherwise, some peace of code in DetailedProgressViewer.remove(Object[]) might be the root of all evil:

 1: Widget item = doFindItem(treeElement);
 2: if (item == null) {
 3:   // Is the parent showing?
 4:   Object parent = treeElement.getParent();
 5:   if (parent != null)
 6:     item = doFindItem(parent);
 7:   }
 8:   if (item != null) {
 9:     unmapElement(elements[i]);
10:     item.dispose();
11:   }
12: }


If a job has finished (in this case treeElement is of type JobInfo) the statement in line 2 holds and in line 8 item will not be null. Thus, item is removed from the viewer nevertheless there are other jobs belonging to the same group and have not finished.

Thanks for any kind of help.
Previous Topic:strange behavior
Next Topic:"Publish" is not working (grays out)
Goto Forum:
  


Current Time: Thu Apr 25 03:32:38 GMT 2024

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

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

Back to the top