Develop your own plug-ins for eclipse

Source: Internet
Author: User
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!

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.