Extension Wizards

org.eclipse.pde.ui.newExtension

This extension point should be used to contribute wizards that will be used to create and edit new extensions in PDE plug-in manifest editor. Wizards can create on or more extensions at the same time, as well as the code needed to implement those extensions. If a contributed wizard is specifically created for a particular extension point, it is advisable to also register a matching editor wizard. This wizard will be used to edit the extension point in the manifest editor after it has been created in the manifest file.

<!ELEMENT extension (wizard | category | editorWizard)*>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT wizard (description?)>

<!ATTLIST wizard

id                  CDATA #REQUIRED

name                CDATA #REQUIRED

icon                CDATA #IMPLIED

class               CDATA #IMPLIED

availableAsShortcut (true | false)

category            CDATA #IMPLIED

template            CDATA #IMPLIED>

a wizard that can be used to create a new extension from within the plug-in manifest editor



<!ELEMENT editorWizard (description?)>

<!ATTLIST editorWizard

id    CDATA #REQUIRED

name  CDATA #REQUIRED

icon  CDATA #IMPLIED

class CDATA #REQUIRED

point CDATA #REQUIRED>

a wizard that can be used to edit an existing extension from within the plug-in manifest editor



<!ELEMENT category EMPTY>

<!ATTLIST category

id             CDATA #REQUIRED

name           CDATA #REQUIRED

parentCategory CDATA #IMPLIED>


<!ELEMENT description (#CDATA)>

A short description of this wizard.



The following is an example of the extension:

<extension point=

"org.eclipse.pde.ui.newExtension"

>

<category name=

"Custom Extensions"

id=

"custom"

>

</category>

<wizard availableAsShortcut=

"true"

name=

"Simple Java Editor Extension"

icon=

"icons/java_edit.gif"

category=

"generic"

class=

"com.example.xyz.SimpleJavaEditorExtension"

id=

"com.example.xyz.simple"

>

<description>

This wizard creates a simple Java editor with all the required classes and manifest markup.

</description>

</wizard>

</extension>

This extension point requires that a class that implements org.eclipse.pde.ui.IExtensionWizard interface.

PDE provides a generic wizard that creates extension points based on the extension point schema information. In addition, all templates registered using org.eclipse.pde.ui.templates extension point in PDE UI are also hooked as individual extension wizards.