无法在基于 Eclipse RCP 的应用程序中恢复编辑器的状态
我正在开发基于独立 Eclipse RCP 的应用程序。我们有一个自定义编辑器,需要在应用程序关闭后恢复。我按照此处所述进行了所有操作: http:// rajakannappan.blogspot.com/2009/10/eclipse-rcp- saving-editor-state-and.html (设置configurer.setSaveAndRestore(true),使我的编辑器输入可持久,创建输入工厂等),但没有成功。我调试了编辑器重新创建的过程,没有找到任何线索。看来我的插件/编辑器存在一些配置问题,但我找不到任何相关文档。
那么,有人知道上述文章是否可以使用,或者可能有一些更好的文档/示例吗?或者我应该检查/调试什么来发现问题?
I am working on standalone Eclipse RCP based application. We have a custom Editor, which needs to be restored, after application was closed. I did everything as described here: http://rajakannappan.blogspot.com/2009/10/eclipse-rcp-saving-editor-state-and.html (set configurer.setSaveAndRestore(true), made my editor input persistable, created input factory and so on), but with no success. I have debugged the process of recreation of editor and could not find any clues. It seems, like there is some configuration problem of my plugin/editor, but I was not able to find any documentation regarding that.
So, does anybody know, if above-mentioned article is OK to use, or may be there is some better documentation/example? Or what should I check/debug to find a problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论