【问题标题】:Eclipse RCP. Add an additional condition for view restorableEclipse RCP。为视图可恢复添加附加条件
【发布时间】:2014-04-11 14:50:44
【问题描述】:

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

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

【问题讨论】:

    标签: java eclipse rcp


    【解决方案1】:

    Restorable 要么是真要么是假,不支持其他任何东西。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-10
      • 2011-11-17
      • 1970-01-01
      • 2011-04-05
      • 2010-12-20
      • 1970-01-01
      • 1970-01-01
      • 2023-03-24
      相关资源
      最近更新 更多