Eclipse 3.0 Introduction and plug-in development examples

Source: Internet
Author: User

Eclipse is a fascinating development environment, providing a core framework and extensible plug-in mechanism to provide unlimited imagination and creating space for the vast majority of programmers. There is a fairly rich and comprehensive plug-in for development tools on the Web, but eclipse has gone beyond the concept of a development environment and can imagine eclipse as a future integrated desktop environment. The current eclipse itself has the capabilities of resource management and external programs, plus an omnipotent plug-in that will constitute a rich and varied working environment, not just an IDE.

1.Eclipse Introduction and plug-in development

Eclipse is a fascinating development environment, providing a core framework and extensible plug-in mechanism to provide unlimited imagination and creating space for the vast majority of programmers. There is a fairly rich and comprehensive plug-in for development tools on the Web, but eclipse has gone beyond the concept of a development environment and can imagine eclipse as a future integrated desktop environment. The current eclipse itself has the capabilities of resource management and external programs, plus an omnipotent plug-in that will constitute a rich and varied working environment, not just an IDE. There is nothing more important to a programmer than a custom work environment that can be arbitrary, and your determination, courage and creativity are at a glance in the process of sharing results with others. OK, you are not echocardiography, if you have a certain understanding of eclipse, then, with me to create their own personalized work environment, first we together develop a weather forecast plug-ins, and then we build their own email fast monitoring function.

The following work is based on the premise that you are a Java programmer, you appreciate and are starting to use eclipse this cool work environment, do not forget to download the latest version of Eclipse3.0, this article is based on Eclipse3.0 development.

2. Weather Forecast Plugin

If you're tired of having to log in to certain sites to get information from related pages, here's a new way to get your information quickly through eclipse. Let's start from the beginning, make a own weather report plugin, your eclipse will have weather forecast function, is it cool?

In this section, we're going to implement an eclipse plug-in that he can use to tell us the weather forecast in our region by simply clicking the mouse whenever we want to know, which is certainly exciting. It should be the case for a programmer. Let's start by defining a plugin and adding it to the menu and toolbar. For those of you who do not have plugin development experience, you can refer to the development Eclipse plug-in, establish a basic sense of plug-in development, of course, this article will help you to complete this creative work in detail.

2.1 Most basic Plug-ins

Open the menu File-> new-> Other->plug-in project, enter the project name, next appears the dialog box, as long as you enter "Muplugin" in the plugin name, next select "Hello,world" Plug-in template you can directly create a new name for the myplugin of the simplest plug-ins, but in fact, our weather forecast is not much more complicated than it, the effect of the modified plug-in after the following figure.

Now run the project as a Run-time Workbench (Run-run as Runtime Workbench), in a brand new Eclipse window, by clicking on the menu's sample action or the circular Eclipse icon in the toolbar, You will see a dialog box with the following 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.