在Eclipse中运行命令ID

时间:2018-07-20 05:58:57

标签: java eclipse

我想知道Run-> run(ctrl + F11)的命令ID。我尝试在插件搜索中搜索

org.eclipse.ui.bindings org.eclipse.ui.actionSets

但是我找不到ctrl + F11的命令ID(w / c是Run)。

org.eclipse.ui.actionSets-org.eclipse.ajdt.ui org.eclipse.ui.actionSets-org.eclipse.ant.ui

我正在创建一个插件。在插件菜单中选择“运行”。而且我需要触发Eclipse IDE的运行。

1 个答案:

答案 0 :(得分:0)

这是使用旧式动作集定义的:

 <action
      id="org.eclipse.debug.ui.actions.RunLast"
       hoverIcon="$nl$/icons/full/elcl16/runlast_co.png"
       class="org.eclipse.debug.internal.ui.actions.RunLastAction"
       definitionId="org.eclipse.debug.ui.commands.RunLast"
       disabledIcon="$nl$/icons/full/dlcl16/runlast_co.png"
       icon="$nl$/icons/full/elcl16/runlast_co.png"
       helpContextId="run_last_action_context"
       label="%ContextLaunchingRunMenu.name"
       menubarPath="org.eclipse.ui.run/relaunchGroup">
 </action>

因此命令ID为org.eclipse.debug.ui.commands.RunLast