Progress bar of progress group disappears [message #899905] |
Thu, 02 August 2012 18:39 |
Benjamin Leipold 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.
|
|
|
Powered by
FUDForum. Page generated in 0.08467 seconds