如何在File中显示新项目向导 - > New->示例...在eclipse中?

时间:2014-03-10 23:10:53

标签: java eclipse eclipse-plugin

我为eclipse制作了一个新的向导插件。我可以通过File->New->ProjectFile->New->Other运行此向导。但是,我也想通过File->New->Example...提供它。我怎么能这样做?

1 个答案:

答案 0 :(得分:0)

使用类别ID org.eclipse.ui.Examples

EMF示例中的示例条目:

<extension point="org.eclipse.ui.newWizards">
  <category
        id="org.eclipse.emf.examples.EMF"
        name="%_UI_EMFExampleCategory_name"
        parentCategory="org.eclipse.ui.Examples">
  </category>
  <wizard
        id="org.eclipse.emf.examples.ActivitiesWizard"
        name="%_UI_ActivitiesWizard_name"
        class="org.eclipse.emf.common.ui.wizard.ExampleInstallerWizard"
        category="org.eclipse.ui.Examples/org.eclipse.emf.examples.EMF"
        project="true"
        icon="icons/full/ctool16/NewEMFExample.gif">
     <description>%_UI_ActivitiesWizard_desc</description>
  </wizard>