Eclipse IDE Eclipse Java and Android Development

Eclipse is an open source Integrated Development Environment (IDE) from the Eclipse Foundation. Eclipse supports Java development by default. However it contains a plugin ability which enables it to be used for developing in other languages and for different platforms. For example, there is an Android plugin that gives Eclipse the added ability to develop applications for the Android mobile operating system. See more details about Eclipse history and capabilities.

Installation Download, Extract, Install, Configure

Before installing Eclipse, you may wish to install the development and run-time environments for the language you will be using. Such as the Java SE Development Kit (JDK). Note, it is advised to match the same "bit version" of Eclipse with the JDK. If you installed a 32-bit version of the JDK, then install the 32-bit version of Eclipse. After the desired run-time and development environments have been installed, getting Eclipse running on the computer is a process of downloading, extracting, and installing the Eclipse software. The eclipse software can be downloaded from the Eclipse downloads website. Once Eclipse has been installed, you may need to configure it to find the desired run-time and development files. Instructions for configuring eclipse can be found in documentation of the eclipse.ini file.

Note: I am currently running Eclipse version 3.7.2 (Indigo) , which I downloaded from the Eclipse Indigo download website. (eclipse-SDK-3.7.2-win32.zip, 183,171,707 bytes). I extracted the downloaded file and then moved the resulting "eclipse" folder to the root of my C: drive. I created a shortcut on my desktop to C:\eclipse\eclipse.exe which I called "Eclipse - Indigo". Here are the version's release notes. I set my default Eclipse work space to "C:\Users\Kevin\workspace".

Working Faster with Eclipse Shortcuts, Tips, Configurations

Eclipse Short Cut Keys
Short Cut Keys
Keys Short Cut Description
<Ctrl><F11> Run Runs the program.
<Ctrl><Space> Content Assist Context Auto Completion.
<Ctrl><Shift>O Organize Imports Missing classes are imported. Unused imports removed.
<Ctrl><Shift>F Source Format Format source code as set up in formatter.
<Shift><Tab> Move Blocks of Code Move Blocks of code left and right.
<Ctrl><L> Line Number Go to specified line number.
<Ctrl><Shift>P Matching Brace Go to matching brace.
<Ctrl>D Delete Row Delete row at cursor position.
<Ctrl>/ Inline Comments Quickly comment and uncomment sections of code.
Tips
  1. Stop Eclipse from automatically creating TO-DO method.
    • Window -> Preferences
    • Java -> Code Style -> Code Template
    • Code -> Method Body
    • Add or remove pattern as desired.
    • Apply -> OK

  2. Remove applet warning about missing serialVersionUID
    • Window -> Preferences
    • Java -> Compiler ->Errors/Warnings
    • Potential Programming Problems
    • Set Serializable class without serialVersionUID to Ignore
    • Apply -> Yes to full rebuild message ->OK
Configurations
  1. Set editor to use spaces instead of tabs.
    • Window -> Preferences
    • Java -> Code Style
    • Formatter -> Edit
    • Set Tab Policy: to "Spaces only".
    • Apply -> OK


Top | Install | Working