【发布时间】:2020-05-19 19:18:04
【问题描述】:
我希望我的 ViewPart 添加到 Show In 组。我添加了perspectiveExtension 并在其下添加了showInPart,当我运行/调试我的插件时,我的视图没有出现在Show In 上下文菜单组中。
这是我在plugin.xml中的扩展点
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<showInPart
id="com.ex.views.DebugView">
</showInPart>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<showInPart
id="com.ex.views.DebugView">
</showInPart>
</perspectiveExtension>
</extension>
【问题讨论】:
-
你的视图是否实现
IShowInTarget?您是在 Java 或资源视角(例如,不是插件开发视角)中尝试这个吗?您可能需要重置视角。 -
是的,1. DebugView 实现了 IShowInTarget 2. 我在调试的目标 eclipse 中尝试了 Java 或 Resource 透视图
标签: eclipse-plugin eclipse-rcp