如何阻止将 allowedMultiple 设置为 true 的 View 在工作台重新启动时出现?
我尝试从透视图中删除 View ,或将其隐藏在 Finalize 中,但系统退出时不会调用 Finalize。
我还尝试将其隐藏在构造函数或 createPartControl()
中,但这不起作用,因为 View 在只是选项卡式时甚至没有创建,而且没有其内容正在显示...
最佳答案
我查了一下,发现this
似乎 org.eclipse.ui.views 扩展有一个名为 restoreable
的属性
- restorable - flag indicating whether this view allows to be restored upon workbench restart. If set to false, the view will not be open after a workbench restart. The default is true.
关于java - 如何阻止 View 在工作台重新启动时重新出现?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24653721/