Eclipse/Using Eclipse

< Eclipse

Purpose

This book is intended for Java Developers, but other developers may also find some sections useful.

The goal of this book to make the reader a better (Java) Programmer.

Intended Audience - (Java) developers, anyone interested in improving the way he/she programs.

Prerequisites - None

Getting Started

As described in Eclipse website, Eclipse is an IDE for everything and nothing in particular. Eclipse core is a universal IDE (a general purpose development environment).

Downloading Eclipse

Eclipse doesn't come with the JRE. It is advisable that you download the latest JRE (Java Runtime Environment) from the Javasoft web site first.

After you have downloaded and installed the JRE, you may then download the Eclipse IDE. Another version of Eclipse is the EasyEclipse project. Its interface is about the same as Eclipse. You can download it instead from [easyeclipse.org]

Installing Eclipse

Installing Eclipse just involves unzipping the downloaded file into a directory. After unzipping the Eclipse IDE is ready to run.

Windows

Eclipse can be run by executing the file startup.jar. If Java Environment (JAVA_HOME) variables are defined then Eclipse IDE will automatically detect the JRE and start running.

Linux

After downloading, open the file eclipse.

Getting Help

Types of help available with eclipse:

  1. Online documentation
  2. Context sensitive help
  3. Hover help
  4. Active Help

Eclipse Help can be accessed using external browser http://localhost:<port>/<path_for_help_content> <port>. The values for these fields can be found in preferences.ini file. Eclipse uses a tomcat server for displaying help documentation.

Configuring Eclipse

(Use different workspaces for different JREs otherwise due to autobuild wrong .class files will get generated)

Using Eclipse

Workspace

Resource (projects, folders, files)

.metadata folder contains information about the workspace.

Keep different workspaces for different development projects (or different customers)

Bookmarks - A bookmark acts as a link to a particular line in a file.

Tasks - A task is created against each java error. Tasks can also be created as an reminder for some activities to be performed. Task contains priority and completion status. Tasks can also work as bookmarks.

(See command line options)

Perspectives

You can create your own (customized) perspective using configurations.

Running Other Applications within Eclipse

need a "how to"/tutorial for External Tools running a main class in one project while referencing a jar file elsewhere. ex. project DoesReallyNeatStuff creates output based on project SomeStuff. How does a project reference the other project using External Tools?

Java Development using Eclipse

syntax highlighting, code completion, code assist, tasks and views.

Introduction

Introduction to Eclipse

Eclipse Project is made available under the Eclipse Public License.

About Eclipse contains information about what is eclipse.org?

Eclipse Download

Eclipse Project FAQs

Eclipse Projects

Eclipse 3.0.1 Online Help

Eclipse Community

Eclipse Configuration Management

Preferences and Properties in the Eclipse Workbench UI

Eclipse Architecture

Notes on the Eclipse Plug-in Architecture

Eclipse Plug-In Programming

Miscellaneous

Branding your application

Highlights

debugger - breakpoints, display value of variable, hot code replace support - change your code while in debug mode, preference settings - tailor according to your needs yourself,

Java doc comments templates

integrated support for Ant, JUnit

Basic Concepts

Eclipse Architecture

WorkBench Terminology

predefined tags TODO, FIXME, XXX

Standard Widget Toolkit (SWT)

The SWT is a collection of APIs that allow writing GUIs (Graphical User Interfaces). The APIs are focused on providing tools to allow "widgets" (graphical controls such as checkboxes, edit controls, etc.) to be displayed and manipulated.

EMF - Eclipse Modelling Framework EMF is a modeling framework and code generation facility for building tools and other applications based on a structured data model. EMF allows a model described using Annotated Java, XML or modeling tools to be generated as executable Java code. The generated code allows the model structure to be inspected, and the model data to be queried, updated and persisted to external storage.

Glossary

Accelerators(Key Board Shortcuts)

  1. Ctrl + F6 - switching between various editors.

How To's

  1. Creating Ant Build File.
    1. Create a simple project.
    2. Create a new file with .xml as extension
    3. Open Ant editor
    4. Write the Ant script
    5. Run As External Tools
  1. Creating a user defined Task Tag
    1. Select Tools > Preference
    2. Select Task Tag
    3. Add new Task Tag
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.