Eclips use (Absolute Classic)

Source: Internet
Author: User
Tags add format assert execution net version window zip

Preface:

I used to use Jbuilderx as the main IDE, but after using eclipse, I found ... Eclipse used to be so useful ... Gradually fell in love with it ...

Eclipse Benefits: Free, program code typesetting, with medium and cultural packages, many powerful plug-ins to add, support for multiple operating systems (Windows, Linux, Solaris, Mac OS X). Wait a minute.

The purpose of this discussion string is to bring together some of the usage techniques of eclipse ... Welcome everyone to continue to add ... Because of the numerous versions of Eclipse, I would like to be able to explain the version you are using.

Eclipse website: http://www.eclipse.org/;
Culture teaching in Eclipse: a reference in Javaworld station

(Use version: Eclipse 2.1.2 Release + Chinese culture)


Hot Key article:

1.template:alt +/
Modify the Office: Window-> Preferences set-> table-> button-> Edit-> content Assist.
Personal habits: shift+space (blank).
Simple description: Edit the program code, hit Sysout +template startup Key, will automatically appear: System.out.println ();
Set Template format: Window-> Preferences->java-> Editor-> template.

2. Automatic typesetting of program code: CTRL+SHIFT+F
Modified by: Window-> preferences set-> table-> button-> program code-> format.
Personal habits: alt+z.
Automatic Typesetting Settings: Window-> preferences set->java-> program code format production program. The style page-> will be inserted in the tab (not the SPACEBAR), and the option is unchecked, with the following number of spaces filled in 4, which is indented with space 4 when automatically choreographed.
  
3. Fast execution procedure: Ctrl + F11
Personal habits: alt+x
Modifications: Window-> preferences set-> Workbench-> button-> perform the start job before-> start.
Simple description: The first time you execute, it will ask you to execute the mode, set up, and then just press this hotkey, it will quickly execute.
4. Categories required for automatic import: Ctrl+shift+o
Easy Description: Suppose we do not import any categories when we enter in the program:
BufferedReader buf = New BufferedReader (New InputStreamReader (system.in));
At this point Eclipse warns you that there is no import category, and then we just press Ctrl+shift+o and it automatically helps us import categories.

5. View the original code using categories: Ctrl + left mouse button click
Easy Note: You can see the original code of the category you are using.

6. Annotate selected text: ctrl+/
Easy Description: Debug is convenient.
Modify: Window-> Preferences-> Workbench-> key-> program code-> annotation

7. Scene switch: Ctrl+f8
Personal habits: alt+s.
Modify Place: Window-> Preferences-> Workbench-> button-> window-> next scene.
Easy to explain: we can quickly switch editing, debugging and other visual scene.


Secret technology:

1. A set of eclipse can be switched at the same time, English, traditional, simplified display:
First of all, we must install the culture bag.
After the shortcut to the desktop, add the parameters,
English->-nl "Zh_us"
Traditional->-nl "ZH_TW"
Simplified->-nl "ZH_CN".
(Other languages, etc.)
As I 2.1.2 in culture, I add parameters-n1 "Zh_us" to the Eclipse shortcuts on my desktop.
"C:\Program Files\eclipse\eclipse.exe"-N "Zh_us"
The interface will change back to the English language chatter.

2. Using eclipse, you don't have to rearrange your program code to edit a document in Word:
By copying the entire program code of the Eclipse program's editing area (Ctrl + C) to Word or WordPad, you'll find that the program code format in Word is exactly the same as the eclipse set, including font, indentation, and keyword color. I've tried JBuilder, GEL, NetBeans ... When using a copy paste, only indented format, font, color, etc. will not change.

External article:

Plug-in installation: The plug-in download back, after the decompression, you will find features, plugins these 2 folders, the inside of the things are copied or moved to Eclipse's features, plugins data clips, restart Eclipse.

Allow Eclipse to use drag-and-drop to build the plug-in of the GUI like Jbuilderx:
1.Jigloo swt/swing GUI Builder:
http://cloudgarden.com/jigloo/index.html;
Download this version: Jigloo plugin for Eclipse (using Java 1.4 or 1.5)
After installation, you can select the GUI type to be constructed by the file-> new-> other->gui form.

2.Eclipse Visual Editor Project:
http://www.eclipse.org/vep/;
Click Download Page below, then click Latest Release 0.5.0 to enter the download.
In addition to Ve-runtime-0.5.0.zip to download, the following 2 are also:
EMF Build 1.1.1: (Build page) (Download Zip)
GEF Build 2.1.2: (Build page) (Download Zip)

3.0 M8 version, please download:
EMF Build I200403250631
GEF Build I20040330
Ve-runtime-1.0m1

Once the installation is successful, the UI design can begin with File->new->visual class.
Once the installation is successful, you can start by selecting the GUI type you want to build from the new->java->awt and swing. ve must cooperate with the corresponding version, to normal use, or even if the installation is successful, use will still have problems.

Using eclipse to develop a JSP program:
Plug-in name: Lomboz (Download page)
http://forge.objectweb.org/project/showfiles.php?group_id=97;
Please select a suitable version of the Lomboz download, Lomboz.212.p1.zip said 2.1.2 version, lomboz.3m7.zip for M7 version .... Analogy
Lomboz Installation and set-up teaching:
Eclipse Development jsp-Teaching Document


java ext. exe article:

Implementation: Eclipse paired with Jsmooth (free).
1. Eclipse is the first to make a jar containing manifest.
Making teaching

2. Use Jsmooth to wrap the jar into an EXE.
Jsmooth download page:
http://jsmooth.sourceforge.net/index.php;

3. The completed EXE file can be executed on Windows with appliance JRE.

Eclipse-java Editor Best set:
Editor font settings: Table-> font->java editor text font.
(Recommended setting Courier New-regular 10)

Editor Related settings: Window-> Preferences->java-> Editor

Appearance: Display line numbers, square brackets that emphasize symmetry, highlight existing rows, display print margins, tick them, tab width to 4, and print the offset field to 80.
Program code Assistance: the adoption of preset can be.
Syntax: You can set the display color of keywords, strings, and so on.
Note: The preset can be adopted.
Input: All fields are checked.
Floating Description: The adoption of a preset can be.
Guided tour: The preset can be adopted.

The effect of automating typesetting is most consistent with the Java Design practice setting:
Automatic Typesetting Settings: Window-> preferences set->java-> program code to make the format.

Linefeed: All is not checked.
Branch: line length upper limit set: 80.
Style: Only insert blank check after forced transformation.
Number of indented spaces: set to 4.

Eclipse's Teaching Files:
Eclipse 3.0 Series Hotkey Table-Bilingual commentary (by Sungo) ~new~
WINDOW+GCC+CDT uses eclipse to develop C, C + + (by Sungo) ~new~

Other:
Java development tools for expanding Eclipse (Chinese)
Developing Java EE applications using Eclipse (Chinese)
Debug using Eclipse platform (in Chinese)
XML development with Eclipse (Chinese)
Develop Eclipse plugin (Chinese)
Internationalization of your Eclipse plugin (English)
Add swing editor to Eclipse (English)
How to test your Eclipse plug-in in line with international market requirements (English)

Eclipse Related sites:
http://eclipse-plugins.2y.net/eclipse/index.jsp;
http://www.eclipseplugincentral.com/;
Eclipse related teaching [simplified]

Write the program to write very tired, want to have a rest?? Playing with little game is a good choice, and here's how to play game with Eclipse plug-in.

Add external articles:

Eclipse-games:
http://eclipse-games.sourceforge.net/;
Version selection: Latest release 3.0.1 (releases Notes) Sat, 3 2004

After installing the plug-in, reopen Eclipse.
Window-> Custom View-> Other-> tick game Actions.
Then turn eclipse off and restart again, and you can start to chatter. (There are 4 kinds: mine I, mine II, Gluttonous snake, Warehouse fan). )


(Eclipse 2.1.2 + Chinese culture play game-warehouse fan)

Added: (in eclipse using the assertion mechanism)
Eclipse version: 2.1.3 release.

JDK1.4 version of the new assertion mechanism (keyword: assert), because the JDK1.4 compiler preset is compatible with 1.3, so to use assert you must add-source 1.4 parameters at compile time.

C:\>javac-source 1.4 Xxx.java
It must be started with-ea or-enableassertions parameters when executing.

C:\>java-ea XXX

To use the assertion mechanism in eclipse, make the following settings:
Set one: (Compile settings)
Windows->preferance->java->compiler->compliance and Classfiles page. Will.. The JDK Compliance Level->compiler Compliance level is adjusted to 1.4.

Set two: (Implementation settings)
Run->run-> (x) =arguments page, add-da parameter to VM arguments, press run button to see execution result after starting assertion.


(Eclipse 2.1.3 Release + assertion test)
  

The new version of Eclipse (m8+) can be set up as a VM arguments
Another way to do this is to join the VM arguments at eclipse startup (as in the case of increasing eclipse preset memory size) so that you don't have to set up a VM every time you run arguments



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.