Eclipse & myeclipse

xiaoxiao2021-03-06  107

Recently, I have a project with my friends. It is a content management system of a website. The first version of the system is based on Struts. The demo version has been opened.

It is now producing a formal release, which uses Struts Hibernate and so on very popular open source technologies, so I decided to use Eclipse, mainly because Eclipse can support Struts and Hibernate development through Plug-in. Moreover, the extensibility of Eclipse's PLUG-IN is super. On the Internet, the thousand Plug-in is everywhere, I have time I have to study the development of Eclipse's Plug-in :)

Eclipse's latest version Eclipse 3.0.1 has been released on September 17, 2004. Then the corresponding version of the multi-language package (including Simplified Chinese) is finally launched. In terms of a netizen, it is a thousand calls. I also installed Chinese packages, Chinese is very good, from the interface to help, all Chinese. But I always feel weird, probably the English development tool, suddenly use a Chinese, but I am not used to it. Anyway, I still changed back to the English version. The introduction later in this document, but also all English version of Eclipse.

It took a period of Eclipse to discover a lot of heart-moving features. For the nobles like JBuilder, Eclipse is more in line with my habits.

I used myECLIPSE plug-in, which is a charged product, which is very powerful. Basically, as long as this plugin is safe, the other Plug-I is not installed. It is not a function of UML and visualization, but I haven't used these features. The latest version of MyEclipse is 3.8.2GA.

First decompress Eclipse-sdk-3.0.1-win32.zip, then install myECLIPSE, first select your Eclipse's path, then select the MyECLIPSE installation path, do not install myECLIPSE to the path of Eclipse.

Start Eclipse, select Window-Preferences in the menu, and enter the configuration window.

First, editor fonts and colors

Workbench-Colors and Fonts, where Java-Java Editor Text Font is the place where the editor font is selected, and the Change next to the point can be selected.

CVS Console Font is the font of the Console window below.

Second, JRE Path Java-Installed JRES here add I installed the path to the J2SDK development package.

Third, ClassPath Java-Build Path-ClassPath Variables Add your own JRE package here

Fourth, the editor sets java-editor selection show line number

5. MyClise Setting 1, first enter the registration code in myECLIPSE-Subscription, to the 9CBS Forum, a lot of pile.

2, configure your own App server

MyECLIPSE-Application Servers Select the server you use. MyECLIPS is displays here, which supports all popular servers now.

I have configured Tomcat 5 and Resin2 Resin3. The configuration method is simple, first eNable this server, then select the installation directory. Next, the JDK configuration of this server, select the JRE name configured in the second point JRE path in the drop-down list inside.

6. Database Configuration MyEclipse-Database Explorer-Driver is here to choose your own database, right-click Change The Selected Driver You can configure your database URL. The database driver can be added to the Extra Class Path tab. 7. Editor MYECLIPSE-EDITORS-Common Editor Preferences selected Show line Numbers

Basic configuration is these, if you have your own needs, you can make other configurations.

Here are some skills when using

Program code automatic typography: Ctrl Shift F, which will automatically format the code to format, very convenient

Quick execution program: CTRL F11 is executed for the first time, it will ask you to execute the mode, set it, then press this hotkey in the future, it will execute quickly.

Automatic importing category: Ctrl Shift o Assume that we don't have any type of Import, when we are in the program: BufferedReader buf = new bufferedreader (new inputr (System.in)); at this time, Eclipse will show no In stock, when we press Ctrl Shift O, it will automatically help us the Import category.

Comment to the selected text: Ctrl / Cancel Comment is also this button

Just mentioned the multi-language pack of Eclipse, after installation, you can use the following method to easily switch the language used.

1. First install the Chinese cultural package first.

2. Adding parameters after the shortcuts of the desktop,

English-> -nl "zh_us"

Traditional -> -nl "zh_tw"

Simplified -> -nl "zh_cn".

(Other languages ​​are pushed by this class)

转载请注明原文地址:https://www.9cbs.com/read-104025.html

New Post(0)