开发者

How do I suppress eclipse warning: Referenced identifier 'VIEWNAME:secondaryid' in attribute 'id' cannot be found

In eclipse 3.4, here is the section of my plugin.xml:

<extension point="org.eclipse.ui.views">
  <view
    allowMultiple="true"
    class="the.full.class.name"
    icon="images/icon.gif"
    id="VIEWNAME"
    name="View Name">
  </view>
</extension>
<extension开发者_运维技巧 point="org.eclipse.ui.perspectiveExtensions">
  <perspectiveExtension targetID="MY_PERSPECTIVE_ID">
     <view
        closeable="false"
        id="VIEWNAME:secondaryid"
        minimized="false"
        moveable="false"
        ratio=".75"
        relationship="left"
        relative="org.eclipse.ui.editorss"
        showTitle="true"
        standalone="true"
        visible="true">
      </view>
    </perspectiveExtension>
  </extension>

The application works fine, I just can't get rid of that annoying warning!


You might be hitting this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=287551


the

perspectiveExtensions
extension point expects the actual view ID. Since in your case it is 'VIEWNAME' therefore for
perspectiveExtensions
id field use the same.

After doing this reset your eclipse perpective and open it again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜