Eclipse DLTK: Adding wizards to the 'New' menu of ScriptExplorerPart

女生的网名这么多〃 提交于 2019-12-04 11:39:15

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>

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

Found this answer but it no longer works in the new eclipse plugin. Just want to provide a working solution for the current version:

go to plugin.xml –> Extensions –> org.eclipse.ui.navigator.navigatorContent (create if not existing) –> New –> commonWizard

and then

type: new for the New submenu and import for Import submenu

wizardId: the id of your wizard for new/import

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!