Eclipse Wizard UI

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

wizard template

make sure 'This plug-in will make contributions to the UI' is enabled

click next.

wizard template

select Custom plug-in wizard

click next

wizard template

select 'New File Wizard'

click next.

wizard template

Set wizard options.

Click finish

template

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.


metadata block
see also:
Correspondence about this page

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2022 Martin John Baker - All rights reserved - privacy policy.