2016-04-23 56 views

回答

1

假设您已为自定义项目编写了一个新向导,请使用org.eclipse.ui.perspectiveExtensions扩展点添加一个“新建向导快捷方式”以直接在“新建”菜单上显示该向导。

是这样的:

<extension point="org.eclipse.ui.perspectiveExtensions"> 
    <perspectiveExtension 
     targetID="org.eclipse.ui.resourcePerspective"> 
     <newWizardShortcut id="org.eclipse.jdt.ui.wizards.NewProjectCreationWizard"/> 

快捷是特定于视角。

您可能必须执行透视重置(或自定义透视图)以获取显示的新快捷方式。

+0

好的.... 它的工作... – raptor

+0

快捷方式出现在文件 - >新建 - >我的自定义项目。 但不是“右键单击Navigator-> New-> My-Custom-Project”。 是否有可能将其作为“右键单击Navigator-> New-> My-Custom-Project”? – raptor

+0

我不确定什么控制这些菜单 - 它可能取决于确切的视图。 –

相关问题