【发布时间】:2018-09-03 13:42:50
【问题描述】:
我正在构建我的自定义编辑器。但是当我右键单击我想要的文件并尝试通过“打开方式”选项使用自定义编辑器打开它时,我的命令处理程序不起作用。我必须在 plugin.xml 中使用 menuContribution 标签下的 locationURI 和 commandId 吗?如果是那怎么办?请查看我当前的 plugin.xml 以获得更好的理解。
插件.xml
<extension point="org.eclipse.ui.editors">
<editor
class="launcher.ChartEditor"
default="false"
id="launcher.ChartEditor"
name="ChartEditor">
</editor>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="launcher.openChartEditor"
name="OpenChartEditor">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="launcher.ChartEditorHandler"
commandId="launcher.openChartEditor">
</handler>
</extension>
【问题讨论】:
标签: eclipse eclipse-plugin eclipse-rcp