[英]Eclipse RCP. Add an additional condition for view restorable
How to add an additional condition for restorable view?如何为可恢复视图添加附加条件? My plugin.xml:
我的 plugin.xml:
<plugin>
<extension point="org.eclipse.ui.views">
<view
allowMultiple="false"
class="com.example.ui.example.views.newView"
icon="icons/example.png"
id="com.example.ui.example.views.newView"
name="New View"
restorable="true">
</view>
I want to view restorable work only on Mondays.我只想在星期一查看可恢复的工作。
Restorable is either true or false, there is no support for anything else. Restorable 要么是真要么是假,不支持其他任何东西。
You might be able to use the org.eclipse.ui.startup
extension point to run code during the Eclipse startup and use IWorkbenchPage
showView
/ hideView
to show or hide the view.您可以使用
org.eclipse.ui.startup
扩展点在 Eclipse 启动期间运行代码,并使用IWorkbenchPage
showView
/ hideView
来显示或隐藏视图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.