Eclipse 视图描述符已删除

2024-03-03

我有一个带有一些自定义视图的 Eclipse 插件项目,但最近每个视图在运行时都有错误:

 !ENTRY org.eclipse.e4.ui.workbench 2 0 2017-07-19 20:24:24.597
 !MESSAGE Removing part descriptor with the 'com.test.ResourceChanges' id and the 'Resource Changes' description. Points to the invalid 'bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView' class.

我将代码与带有示例视图的几乎空的示例进行了比较,其中可以显示视图,并且所有代码看起来都不错。此外,其他依赖项项目也运行良好。
另一方面,示例视图在项目中也不起作用。

示例plugin.xml条目:

<extension point="org.eclipse.ui.views">
    <view allowMultiple="false" category="com.test.category" class="com.test.ResourceChangesView" icon="icons/Icon.png" id="com.test.ResourceChanges" name="Resource Changes" restorable="true">
    </view>
    <category id="com.test.category" name="Changes"></category>
</extension>

这些视图扩展了 org.eclipse.ui.part.ViewPart,但正如我所说,即使是空视图也不会被注册。


None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Eclipse 视图描述符已删除 的相关文章

随机推荐