Eclipse RCP:在一个进度对话框中显示并行作业? [英] Eclipse RCP: Parallel jobs presented in one progress dialog?

查看:103
本文介绍了Eclipse RCP:在一个进度对话框中显示并行作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示多个工作并行运行,但仅在一个进度对话框中。

I would like to show progress of multiple Jobs running in parallel, but in only one progress dialog.

但是每次调用Job.setUser()似乎都会导致一个新的进度对话框。

But each call to Job.setUser() seems to result in a new progress dialog.

我已经尝试过:


  • 在所有作业上设置一个公共进度组(通过IJobManager.createProgressGroup()获得)。

  • 拥有一个父作业,调用setUser()并加入所有并行作业所属的作业族。 (这会导致一条消息,表明后台任务阻止了父作业的进度。)

我可以遵循哪种模式导致所有并行作业出现在一个进度对话框中?

What pattern can I follow to result in all the parallel jobs appearing in one progress dialog?

推荐答案

您是否尝试过使用 org.eclipse .ui.progress.UIJob 。检出此链接 http://www.jdg2e.com/ch29。 jobs / doc / index.html https://web.archive.org/web/20090406175007/http://www.jdg2e.com:80/ 参见页面底部的下载链接,尽管我不是确保解决方案在6年后有多重要。

Have you tried using org.eclipse.ui.progress.UIJob. Checkout this link http://www.jdg2e.com/ch29.jobs/doc/index.html. https://web.archive.org/web/20090406175007/http://www.jdg2e.com:80/ see the download link at the bottom of the page, though I am not sure how relevant the solution is after 6 years.

本教程同时执行两个作业。

The tutorial executes two jobs simultaneously.

关于eclipse的好处是源代码易于使用:)。只需浏览进度视图源即可。本质上,想法是相同的,您需要翻译的是 Progress View->复合您的对话框->复合

The good thing about eclipse is that the source code is readily available :) . Just hack through the progress view source. Essentially the idea is same, what you need to translate is Progress View -> Composite to Your Dialog -> Composite.

希望这会有所帮助。

这篇关于Eclipse RCP:在一个进度对话框中显示并行作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆