Eclipse is a very fascinating development environment, which provides the core framework and scalable plug-in mechanism to provide unlimited imagination and creative space to the majority of programmers. At present, there are quite rich and comprehensive development tools, but Eclipse has surpassed the concept of development environments, which can imagine Eclipse to become future integrated desktop environments. The current Eclipse itself has the functions of resource management and external programs, plus omnipotent plugins, will form a colorful working environment than just an IDE.
1. ECLIPSE Introduction and Plug-in Development Eclipse is a very fascinating development environment, which provides the core framework and scalable plug-in mechanism to provide an unlimited imagination and creative space for the majority of programmers. At present, there are quite rich and comprehensive development tools, but Eclipse has surpassed the concept of development environments, which can imagine Eclipse to become future integrated desktop environments. The current Eclipse itself has the functions of resource management and external programs, plus omnipotent plugins, will form a colorful working environment than just an IDE. For programmers, there is nothing more important than the custom working environment you want, your determination, courage and creativity are in a light in the process of sharing the results with others. Ok, if you have a heartbeat, if you have a certain understanding of Eclipse, then build your own personalized work environment, first we develop a weather forecast together, then we create your own mail. Quick monitoring function.
The following work is based on a certain premise, that is, you are a Java programmer, you appreciate it and start using Eclipse this cool working environment, don't forget to download the latest version of Eclipse3.0, this article is based on Eclipse 3.0 development .
2. Weather forecast plugin If you are tired of you always have to log in to some websites get information from related pages, here there is a new way to quickly get information through Eclipse. Let us start from the beginning, be a weather forecast plugin, your Eclipse will have weather forecast function, is it cool?
In this part, we will implement an Eclipse plugin, he can tell us the weather forecast of our region by simply clicking the mouse when we want to know, which is of course very stimulating. For a programmer, things should be. Let's get started, let's first define a plugin and add him to the menu and toolbar. For you without plug-in development experience, you can refer to "Development Eclipse plugin", establish basic plug-in development awareness, of course, this article will detail your completion of this creative job.
2.1 The most basic plugin You can completely refer to the "Development Eclipse plugin" plugin example, make your first Hello Eclipse plugin, fortunately, Eclipse3.0 is completely considering your needs, through the menu File -> New-> Other -> Plug-in Project, Enter the project name, next appearance dialog, as long as "Muplugin" is entered in the plugin name, after NEXT, select "Hello, World" plug-in template, you can create the easiest to MyPlugin Insert, but in fact, our weather forecast is not complicated than it, and the effect after the construction is changed, as shown below.
Now, the project is run as a runtime workbench, in a brand new Eclipse window, by clicking the round Eclipse icon in the Menu Sample Menu, the round Eclipse icon in the toolbar, you will see the following Dialog of the effect.
Here, the original version of the weather forecast plug-in is made, by modifying plugin.xml, we change the menu into a Chinese form, you need to modify it 2, see the table.
Label = "Sample Action SET"
Visible = "True"
ID = "MyPlugin.ActionSet">