Description: This article is not about how to create a wizard, but on the premise that you already have a wizard, how to quickly start the wizard by using the New button in the menu bar file, the New button on the shortcut toolbar, and the New button in the resource manager. and a new wizard Smave Project has been created through the extension point. Quick Launch Wizard with the File menu and shortcut Bar
This is simpler, just add layout.addnewwizardshortcut (String WizardID) to the implementation class of the perspective (perspective);
The effect is shown in the following illustration:
to quickly start the wizard in Explorer
The extended Explorer will of course use the CNF extension point, To use the extension point org.eclipse.ui.navigator.navigatorContent, what we need to expand is commonwizard this element to see what the official describes: defines a binding Between an existing Eclipse New/import/export Wizard and a given set of items. Each valid binding determines which menu items would appear in the submenus for New/import/export in the context m ENU of a Common Navigator Viewer. Since Eclipse 3.2.1, the wizard menu items respect Eclipse capabilities (for more org.eclipse.ui.activites ).
That is to say, New/import/export can be customized through this extension point.
The effect is shown in the following illustration:
other ways to quickly start the wizard
The
also has a wizard-related shortcut startup method, as follows:
shows how to do this in this way.
In fact, this is officially not recommended, through the extension point org.eclipse.ui.newWizards primarywizard Implementation,
We first look at the official description: a means of declaring that a wizard is " Primary "in the UI. A Primary Wizard is emphasized in the New Wizard dialog. ' Please note ' This ' is ' not ' intended to being used by plug in developers! This element, exists so, is product managers may emphasize a set of wizards for their product.
By description We can see that eclipse officials do not recommend plug-in developers to do so.