简体   繁体   English

如何在Eclipse中的File-> New-> Example ...中使新项目向导可见?

[英]How to make new project wizard visible in File ->New->Example… in eclipse?

I made a new wizard plug-in for eclipse. 我制作了一个新的Eclipse向导插件。 I can run this wizard by either File->New->Project or File->New->Other . 我可以通过File->New->ProjectFile->New->Other运行此向导。 However, I want to make it available via File->New->Example... as well. 但是,我也想通过File->New->Example...使它可用。 How can I do that? 我怎样才能做到这一点?

Use the category id org.eclipse.ui.Examples 使用类别ID org.eclipse.ui.Examples

An example entry from the EMF 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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM