On this page we create a wizard project from the template built into Eclipse.
In Eclipse click on: file->new->other->plug-in project and enter the project name. click next |
|
make sure 'This plug-in will make contributions to the UI' is enabled click next. |
|
select Custom plug-in wizard click next |
|
select 'New File Wizard' click next. |
|
Set wizard options. Click finish |
plugin.xml file
So what has the above done to the project code? Running the code from the extensions page, as described above, creates entries in the plugin.xmi which create extensions to the Eclipse UI. |
<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> <extension point="org.eclipse.ui.newWizards"> <category name="ModelOut" id="com.euclideanspace.modelout"> </category> <wizard name="Output Text" icon="icons/sample.gif" category="com.euclideanspace.modelout" class="com.euclideanspace.modelout.wizards.ModelOutWizard" id="com.euclideanspace.modelout.wizards.ModelOutWizard"> </wizard> </extension> </plugin> |
Calling the Wizard
The wizard is called from:
File -> new -> ModelOut -> Output Text
Further Reading
How do we create menu entries. That is described on the next page.