Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "FAQ How do I add my wizard to the New, Import, or Export menu categories?"
m |
m |
||
Line 29: | Line 29: | ||
== See Also: == | == See Also: == | ||
− | *[[ | + | *[[FAQ How do I make my wizard appear in the UI?]] |
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font> | <hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font> |
Latest revision as of 23:48, 7 June 2006
Some special kinds of wizards have to be registered with the platform in your plugin.xml file. These wizards are found under the File > New, File > Import, and File > Export menu actions. These wizards are declared using the org.eclipse.ui newWizards, importWizards, and exportWizards extension points, respectively. Once you have declared your wizard with the appropriate extension point, the platform will take care of displaying it in the appropriate places. Following is an example declaration of a new wizard:
<extension point="org.eclipse.ui.newWizards"> <wizard name="New Addition" class="org.eclipse.faq.examples.AddingWizard" id="org.eclipse.faq.examples.addingWizard"> </wizard> </extension>
This wizard will appear by default under File > New > Other.... To make the wizard appear under the new-project category, add the attribute project="true" to the extension declaration.
To add your own wizard category, use
<category id="org.eclipse.faq.examples.MyWizard" name="FAQ Wizards"> </category> <category id="org.eclipse.faq.examples.WizardSubCategory" name="More Specific FAQ Wizards"> parentCategory="org.eclipse.faq.examples.MyWizard" </category>
See Also:
This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.