I. Plug-in development
1. Introduction
Eclipse is powerful, thanks to its osgi-based plug-in system. Eclipse is based on plug-ins.
Add or be replaced. Developers can also develop their own plug-ins to expand eclipse functions.
A. Plug-ins
Plug-ins are the basic unit of packaging. A plug-in is usually a jar file or directory, which is placed in the "plugins" sub-directory of the eclipse installation directory.
Directory. The configuration information of the plug-in is contained in the plugin. xml file.
B. Functional Components
Each plug-in is combined to successfully provide components. A feature is the smallest unit that allows you to download and install features independently. Feature to include them
The purpose of organizing functional components is to distribute and update products.
C. Section
To provide other plug-in functions for existing plug-ins. Segment is ideal for providing functional components such as languages or maintenance packages
. Another use is to deliver functional components specific to the operating system or Windows system. Segment description using the segment Configuration File Fragment. xml. it
Similar to the plug-in configuration file.
This example demonstrates a simple "paint" plug-in to inherit the "editorpart" class implementation.
2. knowledge points
Use of actionsets
Use of newwizards
Use of editorpart
Use of views
Third-party package Import
Plugin. xml configuration
Product Configuration File. Product Configuration
3. Code (see attachment)
Ii. RCP Development
1. Introduction
The Eclipse plug-in system is flexible and convenient, and is very popular among everyone. We hope to use it independently. RCP plans to integrate eclipse Core
The package is restructured, and the IDE functions are separated from the platform package as much as possible, so that eclipse can be regarded as a pure
With IDE features, developers can continue to use the rich resources provided by eclipse without having to worry about development.
The software can only be used as a plug-in of Eclipse IDE.
This example demonstrates a simple text editor.
2. knowledge points
RCP Main Program Creation
RCP plug-in Establishment
Import existing projects
3. Code (see attachment)
Iii. Download
Video temporary:
Http://www.gonxi.com/java/chapter3/gonxi_javavideo tutorial (3)-plugin & RCP development. Avi
FTP: // vdown: vdown@218.106.51.118/Chapter3/gonxi_java video tutorial (3)-plugin & RCP development. Avi
Temporary code:
Http://www.gonxi.com/java/chapter3/gonxi_javavideo tutorial (samples.rar
FTP: // vdown: vdown@218.106.51.118/Chapter3/gonxi_javavideo tutorial (3_samples.rar
Playback decoder:
Http://www.techsmith.com/download/codecs.asp
If the download fails, leave a message here.
Special thanks to: Eclipse developer group number: 6674633 for providing FTP Space