As we all know, except for the small runtime kernel in eclipse, almost all things are plug-ins!
Workbench and workspace are two essential plug-ins in the eclipse platform. They provide extensions for most plug-ins!
Workbench components include extensions that allow developers to expand the eclipse user interface, including menus and toolbar buttons
The workspace component provides some extension points for interacting with resources.
The simplest way to create a plug-in eclipse is to use the plug-in development enviroment (PVDF) provided in the eclipse environment, which is a standard extension of Eclipse.
Start with your first plug-in:
Create a project, select plug-in Development --- plug-in project ---- use a template to create a plug-in ----- select Hello, world.
Important files generated here include sampleaction. Java on the main interface of the main interface that implements the plug-in effect,
Aaronplugin. Java and
Plugin. XML as the plug-in entry (modify the display content of the plug-in on the panel in this configuration file)
In the test of the perspective that appears, click 'lanch an eclipse application' to start an eclipse.
The menu and toolbar buttons of Hello world are displayed in eclipse.
Finally, to allow the plug-in to be installed and used in other eclipse development environments, package and release the plug-in.
The specific operation is to export the project, select "deployable plug-ins and segments", and select "includeSource code", Select the export location.
Copy the generated JAR file to the Plugins directory under the eclipse installation directory and restart! You can see the effect!