Introduction: Eclipse's most attractive place is its plug-in architecture, and most of the functionality implemented in Eclipse is done by the appropriate plug-ins. This article describes the Eclipse WTP Wizard plug-in Development, which stems from the practical application to develop the IBM WebSphere Multichannel Bank Transformation Toolkit (BTT) Creation Application Wizard (New Application Wizard). The article first outlines the Wizard and then analyzes JFace WIZARD,WTP Wizard design Patterns in detail, including the interfaces and functions that need to be used. Finally, an example is used to guide readers to understand the WTP Wizard extension method in depth.
Introduction
It is well known that Eclipse is a mature, well-designed, and extensible architecture. In Eclipse, except for the small run-time kernel, all the other functional modules are plug-ins. The Web Tools Platform (WTP) is a collection of plug-ins that are extended on the Eclipse platform to develop Java EE WEB applications. Since WTP is a plug-in, why do you need to extend it? WTP provides a wealth of features, such as source editor, graphic editing, Java EE project construction and Java EE Wizard WEB Services, as well as database operations, because business needs, need to edit a specific syntax format documents, such as syntax highlighting, validation, editing assistant (Code Assist), etc. This will require an extension of the WTP. In summary, WTP Extension development is required when WTP provides common functionality that requires customization or does not meet business requirements.
The wizard (Wizard) is an interactive help utility that guides users through each step in a multi-step operation, provides useful help, and interprets options in this process, ultimately leading the user through specific tasks. Wizards are ubiquitous in Eclipse, choose File > New > Project, and each item listed in the dialog box is a stand-alone Feature wizard.
Figure 1. Eclipse Wizard