如何处理 RCP 关闭时 UI 报告的长时间操作?
当我的工作台中正在运行长时间操作(因此通过进度视图向我报告)(例如“全部清除”操作)时关闭我的 Eclipse(用于插件开发)工作台时,会发生以下情况:
- 主工作台窗口被关闭并显示
- 一个新 窗口打开小窗口(我猜是一个对话框),其内容与之前的进度视图相同。该对话框通知我,在实际关闭应用程序之前,某些操作正在完成。
如何在 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:
- the main workbench window is closed
- 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 eclipse-IDE 代码看看它是如何实现的怎么样;)
小建议:
捆绑
What about looking in the eclipse-IDE code to see how its implemented ;)
Small advice:
in bundle