如何处理 RCP 关闭时 UI 报告的长时间操作?

发布于 2024-10-12 11:22:35 字数 257 浏览 7 评论 0原文

当我的工作台中正在运行长时间操作(因此通过进度视图向我报告)(例如“全部清除”操作)时关闭我的 Eclipse(用于插件开发)工作台时,会发生以下情况:

  1. 主工作台窗口被关闭并显示
  2. 一个新 窗口打开小窗口(我猜是一个对话框),其内容与之前的进度视图相同。该对话框通知我,在实际关闭应用程序之前,某些操作正在完成。

如何在 RCP 应用程序中通过我自己的运行长时间操作的作业实现相同的行为?

感谢您的帮助, 马努

When closing my Eclipse (for plugin development) workbench while a long operation is running in my workbench (and thus reported to me through the progress view) such as a "Clean all" action the following happen:

  1. the main workbench window is closed
  2. a new small window (a dialog I guess) is opened with the same content than the previous progress view. This dialog informs me that some operations are being completed before actually closing the application

How can I achieve the same behavior in an RCP application with my own Jobs running long operations ?

Thansk for your help,
Manu

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沧桑㈠ 2024-10-19 11:22:35

看看 eclipse-IDE 代码看看它是如何实现的怎么样;)
小建议:

org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.postShutdown()

捆绑

org.eclipse.ui.ide.application

What about looking in the eclipse-IDE code to see how its implemented ;)
Small advice:

org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.postShutdown()

in bundle

org.eclipse.ui.ide.application
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文