如何在 eclipse rcp 应用程序中的进度视图中禁用每个进度条目的作业取消按钮?
有人可以告诉我如何在 eclipse rcp 应用程序的“进度视图”选项卡中的作业进度条目中禁用取消按钮。除了建议使用 ProgressMonitorDialog 的参考文献之外,我无法在网络上找到任何参考文献。然而,使用对话框不是一种选择,因为进度视图必须保持视图的形式。 我发现了 ProgressMonitorPart,这听起来像是我可以使用的东西。如果是这种情况,我该如何将其传递给 Job.run(IProgressMonitor) ?
谢谢您的宝贵时间!
could someone please tell me how to disable cancel button in a job's progress entry in Progress View tab in eclipse rcp application. i have not been able to locate any references on the web aside from the ones that suggest the use of ProgressMonitorDialog. using the dialog, however, is not an option, as the Progress View must remain in a form of a view.
i have come upon ProgressMonitorPart, which sounds like something that i can use. if that is the case, how do i go about passing it to Job.run(IProgressMonitor)?
thank you for your time!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不知道。您可以在您的作业上调用
Job#setSystem()
,这样就不会显示它,但您无法分拆用户至少不能询问的作业 /em> 你取消。停止按钮的作用只不过是将进度监视器设置为已取消——仍然取决于正在运行的作业来检查进度监视器并自行运行。或不。http:// help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fruntime_jobs_progress.htm
You don't. You can call
Job#setSystem()
on your Job so it's hinted as not to be shown, but you don't get to spin off jobs that the user can't at least ask you to cancel. The stop button does little more than set the progress monitor as having been canceled--it's still up to your running Job to check the progress monitor and behave itself. Or not.http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fruntime_jobs_progress.htm