Eclipse DLTK:将向导添加到ScriptExplorerPart的“新建”菜单中 [英] Eclipse DLTK: Adding wizards to the 'New' menu of ScriptExplorerPart

查看:185
本文介绍了Eclipse DLTK:将向导添加到ScriptExplorerPart的“新建”菜单中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向Eclipse的动态语言ToolKit的 ScriptExplorerPart 添加向导条目。

I'm trying to add a wizard entry to a ScriptExplorerPart of the Dynamic Languages ToolKit for Eclipse.

向导可从 File-> New-> Other ... 访问,所以至少我知道他们工作。它们使用扩展点 org.eclipse.ui.newWizards 添加。我想要的是按这个截图所示添加它们。

The wizards are accessible from File->New->Other..., so at least I know they work. They are added using the extension point org.eclipse.ui.newWizards. What I would like is to have them added as indicated on this screenshot.

开始我认为应该使用扩展点 org.eclipse.ui.navigator.navigatorContent ,建议在这个eclipse新闻列表。这样做不行,因为DLTK似乎并不尊重这个扩展点。

To start with I figured it should probably be done using the extension point org.eclipse.ui.navigator.navigatorContent, as suggested in this eclipse newslist. This does not work however, as it seems like DLTK does not honor that extension point.

所以,如果有人可以指出正确的方向,关于正确的扩展指向使用,或者如果有另一种(更好)的方法来添加向导快捷方式,我将非常感激。

So, if anyone could point me in the right direction with regards to the correct extension point to use, or if there is another (better) way to add wizard shortcuts, I would much appreciate it.

推荐答案

虽然这个问题有点旧:
透视图控制菜单中的快捷方式。您可以使用扩展点org.eclipse.ui.perspectiveExtensions将您的向导添加到新的。
它应该是这样的:

although this question is a bit old: perspectives control the shortcuts in the menus. you can use the extension point org.eclipse.ui.perspectiveExtensions to add your wizard to new. it should look something like this:

<extension
     point="org.eclipse.ui.perspectiveExtensions">
  <perspectiveExtension targetID="yourPerspective">
    ....
     <newWizardShortcut
           id="idOfYourNewWizard">
     </newWizardShortcut>
  </perspectiveExtension>
</extension>

您的向导将显示在文件>新

了解更多信息,请参阅这两个链接:


http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide% 2Fworkbench_advext_perspectiveExtension.htm



http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv %2Frefference%2Fextension-points%2Forg_eclipse_ui_perspectiveExtensions.html

your wizard will then show up under File > New.
for more information, consult those two links:

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fworkbench_advext_perspectiveExtension.htm
and
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_perspectiveExtensions.html

这篇关于Eclipse DLTK:将向导添加到ScriptExplorerPart的“新建”菜单中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆