Eclipse RCP视图在应用程序启动时未显示出来。

3

我遇到了一个问题,大约已经持续了一个小时,我不知道我做错了什么。你能看出我的plugin.xml代码中的错误吗?

<extension
     point="org.eclipse.ui.perspectiveExtensions">
  <perspectiveExtension
        targetID="de.tps.client.workspace.perspective">
     <view
           closeable="true"
           id="de.tps.client.inboxplusplus.views.inboxplusplusview"
           minimized="false"
           moveable="true"
           ratio="0.3"
           relationship="bottom"
           relative="de.tps.client.iteminfo.view"
           showTitle="false"
           standalone="false"
           visible="true">
     </view>
  </perspectiveExtension>

并且视图:

<extension
     point="org.eclipse.ui.views">
  <view
        allowMultiple="false"
        category="com.contmgmt.client.category"
        class="de.tps.client.inboxplusplus.views.Inboxplusplusview"
        id="de.tps.client.inboxplusplus.views.inboxplusplusview"
        name="%view.inbox.name"
        restorable="true">
  </view>

任何建议都将不胜感激。
1个回答

6

对我来说,这个很好用。我猜你需要重置透视图,因为旧的布局没有保存这个视图。

点击顶部菜单:首选项 -> 重置透视图。

这些信息存储在:$workspace/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接