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
perspectiveExtensionsextension point expects the actual view ID. Since in your case it is 'VIEWNAME' therefore for
perspectiveExtensionsid field use the same.
After doing this reset your eclipse perpective and open it again.
精彩评论