Eclipse Plugin Development Quick Wizard __eclipse Plugin

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.