Buy 2+ books or eBooks, save 55% through December 1. Use code BOOKSGIVING. Shop the sale.
"This book does an excellent job of helping you learn Eclipse. The practical examples and exercises included have been proven in real-life course situations and are invaluable in helping you to get up and running quickly."
—Dave Thomson, Eclipse Project Program Director, Object Technology International, Inc.
Eclipse is a world-class Java IDE, a platform for building and integrating application development tools, and an open source project and community. Written by members of the IBM Eclipse Jumpstart team, The Java™ Developer's Guide to Eclipse is the definitive Eclipse companion. Drawing on their considerable experience teaching Eclipse and mentoring developers, the authors provide guidance on how to customize Eclipse for increased productivity and efficiency and how to avoid common pitfalls.
Key coverage includes:
Those new to Eclipse will benefit from the directed exercises on using the Eclipse platform. Advanced developers can learn how to extend Eclipse and use this book as a reference to the Eclipse frameworks.
The accompanying CD-ROM contains Eclipse SDK Version 2.0, as well as exercise solutions and many code examples for easier learning. Whether you want to use Eclipse and Eclipse-based offerings as your integrated development environment (IDE), or customize Eclipse further, this book is your definitive reference.
Download Sample Chapter 3 related to this title.
Origin of the Book.
Intended Audience and Prerequisites.
How the Book Is Organized.
I. RUNNING ECLIPSE.1. Getting Started.
Software Challenge and Eclipse.
What Is Eclipse?
Java Development Environment.
Tool Integration Platform.
Open Source Community.
What Is the Common Public License?
Getting and Installing Eclipse.
The Eclipse Look: Editors, Views, and Perspectives.
Working in Eclipse.
A Word to IBM VisualAge Users.
References.2. Using Eclipse.
Creating Your First Project.
Overview of the User Interface.
Manipulating the User Interface.
Fundamental Eclipse Use.
Working with Tasks.
Working with Bookmarks.
More on Projects.
Importing and Exporting Resources.
Running Multiple Eclipse Windows.
Customizing Your JRE.
Using Other Computer Programs with Eclipse.
More on Preferences.
Chapter Summary.3. Using Java Development Tools.
Overview of the JDT User In
In 2000, the authors formed the core of a group within IBM called the Jumpstart team. Our team was created to share knowledge of the Eclipse technology throughout IBM and with its business partners, that is, to 'jumpstart' the IBM and partner development community on Eclipse. Part of this effort included the creation of a set of presentations, lecture materials, and accompanying exercises. Over the ensuing months, as the Eclipse technology matured, the presentation and exercises matured as well. As the Eclipse community grew to include various companies and academic institutions, requests for this information grew as well. After every class taught, we revised and improved the materials. When our schedules could not keep pace with the demand, we adapted the materials and made them available to use in a self-study mode. This was the genesis of this book. You can think of each chapter in the book as a lesson in class. The exercises and solutions reinforce the concepts of the chapter and provide you with practice using or extending an aspect of Eclipse.
Our goals in bringing you this book are to:
1. Provide information for those new to Eclipse.
2. Explore the capabilities of Eclipse
The book will cover both using Eclipse as your development environment and extending Eclipse. The chapters on using Eclipse start with its use as a general development environment and then progress on to developing and debugging Java and more advanced usage topics, for example using Eclipse in a team environment. In the chapters in extending Eclipse in Part II, we cover the most common classes for each Eclipse framework. References to design patterns, where applicable, illustrate the architectural relationships among the classes. The intent is not to replace the Javadoc that is included with Eclipse, but to compliment the documentation by focusing on how to bring a set of classes together to complete a task.
3. Provide exercises and working examples that are simple and focused on the chapter topic.
4. Provide reference material for those experienced in using Eclipse.
5. Promote the Eclipse community
Though the term "Eclipse" conveys the image of a solar eclipse causing darkness, the intent of this book is to shed light, add clarity, and focus on a powerful new platform. Whether you are new to Eclipse or one of the early adopters, we welcome you to the Eclipse community.
The audience for this book includes Java programmers who plan to use Eclipse as their integrated development environment (IDE), those who will use Eclipse-based offerings, advanced users who want to customize Eclipse further, and tool providers that seek to develop tools that will integrate with Eclipse and other Eclipse-based offerings. This book assumes that you are familiar with the Java programming language. While it describes how to use the Java development tools, it does not teach the syntax and semantics of the Java programming language.
Part I of the book applies to those using Eclipse as their development environment. The book begins by covering the basic navigation and terminology of Eclipse. You will learn about the Java development environment including secrets to becoming a power user. You will learn how to use the flexibility of Eclipse to maximize your productivity and fit your own personal style. Students who are studying the Java programming language may find using Eclipse, instead of simply a command line environment, a much more productive and exciting way to learn the richness and power of the Java programming language. Instructors may discover how using Eclipse in the classroom will accelerate the student's mastery of the language and be a productive tool to use in research.
If you are interested in extending the Eclipse base with additional capabilities or building an offering based on Eclipse, then continue on reading Part II. The chapters describe how to build a plug-in and the various Java frameworks provided to make contributing additional function to Eclipse easier and more consistent. It will cover how to add menu choices, toolbar buttons, views, editors, dialogs, and online documentation to Eclipse.
Learning in a programming environment without actually writing code is difficult. Part III contains a series of detailed exercises to reinforce the concepts presented in the chapters. Part III depends on the files included on the CD-ROM. Template files that provide scaffolding code accompany some of the exercises. During the completion of the exercises, you will fill in the missing code. The template files include Eclipse Scrapbook Page files with the file extension of .jpage. These files can be used to copy and paste into the .java files to complete the exercises without doing a lot of typing. In addition, the CD-ROM contains solutions to all of the exercises plus many code samples augmenting the material in the chapters. The samples do not depend on one another, so you can study them in any order.
There are many Eclipse-based tools available today and more under development, including ones for C++, Web services, J2EE programming, and UML modeling. This book focuses on the use of Eclipse by the Java developer. However, the fundamentals of Eclipse covered in the first few chapters can be used across all types of tools.
This book includes a CD-ROM with the following:
To complete the exercises, you must install Eclipse SDK version 2.0. The Eclipse SDK requires that you install a Java Development Kit (JDK) version 1.3 or higher. You may download a JDK from http://www.ibm.com/java/jdk or http://java.sun.com. The files on the CD-ROM are designed for Windows2000 and WindowsXP. Because the examples are written in the Java programming language, you can use them on other operating systems as well, as long as the code or instructions do not depend on Windows specific function. See the file readme.html on the CD-ROM for more information.
Download Foreword related to this title.
Download the Index
file related to this title.
Updated: 10, September 2003
Send feedback on the book to: JDG2E@yahoogroups.com
The following is a listing of errors found on the CD_ROM plus additional, new content.
The SQL editor contained on the CD-ROM in the project,
missing the properties file. When running the solution without the properties file, the following error messages appear.
The corresponding console message is:
Unable to create editor contributor: com.ibm.lab.soln.sqleditor.editor
was unable to instantiate class
sqltexteditorproperties.zip , unzip the file and copy
into the package;
The key binding API changed considerably from 2.0 to 2.1. Retargetable actions
require an explicit binding of your editor's action to the platform
action. The platform changes broke two functions in the original version of the SQL Editor. The content assist key Ctl+Space is not enabled. In
addition the global editor actions; Copy, Cut, Paste, Undo, Redo, and Revert are disabled. Note that not all the following fixes are backward
action created in the
method must set the action definition id of the action.
method is used for this purpose.
See the pertinent code in the
created in TextEditorActionContributor
extensions must set the action definition id.
The setActionDefinitionId() method of RetargetTextEditorAction is used for this purpose. See the affected code in the
constructor of the SQLEditorContributor class.
implementing custom actions in a JFace text editor, enabling the global editor
actions; Copy, Cut, Paste, Undo, Redo, and
Revert requires calling the createActions() method in the super class, AbstractTextEditor. See the first line of code in the
createActions() method in the
unzip the file and from Eclipse perform
File > Import… External Plug-ins and Fragments.