gpt4 book ai didi

java - eclipse RCP。为 View 可恢复添加附加条件

转载 作者:行者123 更新时间:2023-11-30 09:09:32 24 4
gpt4 key购买 nike

如何为可恢复 View 添加附加条件?我的插件.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>

我只想在星期一查看可恢复的工作。

最佳答案

Restorable 是 true 或 false,不支持任何其他内容。

您可以使用 org.eclipse.ui.startup 扩展点在 Eclipse 启动期间运行代码并使用 IWorkbenchPage showView/hideView 显示或隐藏 View 。

关于java - eclipse RCP。为 View 可恢复添加附加条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23015927/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com