Buying Options
Eclipse Cookbook
Print $44.95
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £34.50
Add to Cart
What is this?
Description
Eclipse is a powerful open source platform that gives Java developers a new way to approach development projects. In the Eclipse Cookbook, Java expert Steve Holzner demystifies Eclipse with practical recipes for more than 800 situations you may encounter--from deploying a web application automatically to reverse engineering compiled code, from re-naming all references to a class across multiple packages to initializing the SWT JNI libraries.
Full Description
Table of Contents
  1. Chapter 1 Basic Skills

    1. Introduction

    2. Getting Eclipse

    3. Installing and Running Eclipse

    4. Understanding Your Workspace

    5. Running Multiple Eclipse Windows

    6. Creating a Java Project

    7. Managing Perspectives, Views, and Editors

    8. Mastering the Java Perspective

    9. Creating a Java Class

    10. Completing Code Automatically

    11. Running Your Code

    12. Running Code Snippets

    13. Fixing Syntax Errors Automatically

    14. Keeping Your Workspace Clear

    15. Recovering from Total Disaster

  2. Chapter 2 Using Eclipse

    1. Introduction

    2. Showing/Hiding Views

    3. Moving a View or Toolbar

    4. Accessing Any Project File

    5. Tiling Editors

    6. Maximizing Views and Editors

    7. Going Back to the Previous Editor

    8. Going Back to the Previous Edit Location

    9. Linking Views to Editors

    10. Reordering View and Editor Tabs

    11. Navigating from an Editor to a View

    12. Creating a Key Binding

    13. Displaying More Resource Information with Icons

    14. Using a Different Workspace

    15. Creating a Task

    16. Creating a Bookmark

    17. Creating a Fast View

    18. Customizing Help

    19. Restoring Deleted Resources

    20. Customizing a Perspective

    21. Restoring a Perspective

    22. Creating a New Perspective

  3. Chapter 3 Java Development

    1. Introduction

    2. Speeding Up the JDT Editor

    3. Creating a Java Project

    4. Creating Java Packages

    5. Creating a Java Class

    6. Creating a Java Method

    7. Overriding a Java Method

    8. Getting Method Parameter Hints

    9. Inserting Method Parameter Names

    10. Creating Getter/Setter Methods

    11. Creating Delegate Methods

    12. Surrounding Code with do/for/if/try/while Blocks

    13. Finding the Matching Brace

    14. Automatically Wrapping Strings

    15. Creating a Constructor

    16. Converting Constructors to Factory Methods

    17. Commenting Out a Section of Code

    18. Creating Working Sets

    19. Creating TODO Tasks

    20. Customizing Code Assist

  4. Chapter 4 Refactoring, Building, and Launching

    1. Introduction

    2. Renaming Elements

    3. Moving Elements

    4. Extracting and Implementing Interfaces

    5. Searching Code

    6. Comparing Files

    7. Comparing Files Against Local History

    8. Restoring Elements and Files from Local History

    9. Selecting the Java Runtime for Builds

    10. Running Your Code

    11. Building Your Code

    12. Using .jar and .class Files

    13. Setting the Launch Configuration

  5. Chapter 5 Testing and Debugging

    1. Introduction

    2. Installing JUnit

    3. Testing an Application with JUnit

    4. Starting a Debugging Session

    5. Setting a Breakpoint

    6. Stepping Through Your Code

    7. Running Until Encountering a Breakpoint

    8. Running to a Line of Code You Select

    9. Watching Expressions and Variables

    10. Setting a Hit Count for Breakpoints

    11. Configuring Breakpoint Conditions

    12. Creating Field, Method, and Exception Breakpoints

    13. Evaluating Expressions

    14. Assigning Values to Variables While Debugging

    15. Changing Code on the Fly

  6. Chapter 6 Using Eclipse in Teams

    1. Introduction

    2. Getting a CVS Server

    3. Creating a CVS Repository

    4. Connecting Eclipse to a CVS Repository

    5. Storing an Eclipse Project in a CVS Repository

    6. Committing Files to the CVS Repository

    7. Visually Labeling Files Under Version Control

    8. Examining the CVS Repository

    9. Checking Projects Out of a CVS Repository

    10. Updating Your Code from a CVS Repository

    11. Synchronizing Your Code with the CVS Repository

    12. Creating Code Patches

    13. Naming Code Versions

    14. Creating CVS Branches

  7. Chapter 7 Eclipse and Ant

    1. Introduction

    2. Connecting Ant to Eclipse

    3. Building an Eclipse Application Using Ant

    4. Catching Ant Build File Syntax Problems

    5. Using a Different Build File

    6. Using Your Own Version of Ant

    7. Setting Types and Global Properties

    8. Setting Ant Editor Options

    9. Setting Ant Arguments

    10. Using the Ant View

    11. Using Ant as an External Tool

  8. Chapter 8 SWT: Text, Buttons, Lists, and Nonrectangular Windows

    1. Introduction

    2. Working with SWT Widgets

    3. Creating an SWT Application

    4. Adding the Required SWT JAR Files to the Build Path

    5. Launching an SWT Application

    6. Positioning Widgets and Using Layouts

    7. Creating Button and Text Widgets

    8. Handling SWT Widget Events

    9. Creating List Widgets

    10. Creating Composite Widgets

    11. Creating Nonrectangular Windows

    12. Multithreading SWT Applications

  9. Chapter 9 SWT: Dialogs, Toolbars, Menus, and More

    1. Introduction

    2. Creating Message Boxes

    3. Creating Dialogs

    4. Creating Toolbars

    5. Embedding Buttons in Toolbars

    6. Handling Toolbar Events

    7. Embedding Combo Boxes, Text Widgets, and Menus in Toolbars

    8. Creating a Menu System

    9. Creating Text Menu Items

    10. Creating Image Menu Items

    11. Creating Radio Menu Items

    12. Creating Menu Item Accelerators and Mnemonics

    13. Enabling and Disabling Menu Items

    14. Creating Menu Separators

    15. Creating Tables

    16. Creating Table Columns

    17. Adding Check Marks to Table Items

    18. Enabling and Disabling Table Items

    19. Adding Images to Table Items

    20. Using Swing and AWT Inside SWT

  10. Chapter 10 SWT: Coolbars, Tab Folders, Trees, and Browsers

    1. Introduction

    2. Creating SWT Tab Folders

    3. Creating SWT Coolbars

    4. Adding Items to Coolbars

    5. Adding Drop-Down Menus to Coolbars

    6. Creating SWT Trees

    7. Handling Tree Events

    8. Adding Checkboxes to Tree Items

    9. Adding Images to Tree Items

    10. Creating SWT Browser Widgets

  11. Chapter 11 JSP, Servlets, and Eclipse

    1. Introduction

    2. Installing Tomcat

    3. Starting Tomcat

    4. Creating JSP Files

    5. Creating a Servlet

    6. Installing a Servlet in Tomcat

    7. Creating a Servlet in Place

    8. Editing web.xml in Place

    9. Avoiding Output Folder Scrubs

    10. Interfacing to JavaBeans

    11. Using a Tomcat Plug-in

    12. Creating WAR Files

  12. Chapter 12 Creating Plug-ins: Extension Points, Actions, and Menus

    1. Introduction

    2. Installing a Plug-in

    3. Creating plugin.xml

    4. Creating a Menu-Based Plug-in Using Wizards

    5. Testing Plug-ins with the Run-time Workbench

    6. Deploying a Plug-in

    7. Writing a Plug-in from a Skeleton

    8. Responding to User Actions in a Plug-in

    9. Creating a Plug-in Menu from Scratch

    10. Creating Actions

    11. Coding a Plug-in Action

    12. Automatically Adding a Plug-in to a Perspective

  13. Chapter 13 Creating Plug-ins: Wizards, Editors, and Views

    1. Introduction

    2. Creating a Plug-in That Supports Wizards and Editors

    3. Customizing a Wizard

    4. Customizing an Editor

    5. Creating a Plug-in That Supports Views

    6. Adding Items to a View

    7. Configuring a View's Actions

  1. Colophon

View Full Table of Contents
Product Details
Title:
Eclipse Cookbook
By:
Steve Holzner
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
June 2004
Pages:
368
Print ISBN:
978-0-596-00710-2
| ISBN 10:
0-596-00710-8
Customer Reviews
About the Author
  1. Steve Holzner

    Steve Holzner is an award-winning author who has been writing about Java topics since Java first appeared. He's a former PC Magazine contributing editor, and his many books have been translated into 18 languages around the world. His books sold more than 1.5 million copies, and many of his bestsellers have been on Java. Steve graduated from MIT and got his PhD at Cornell; he's been a very popular member of the faculty at both MIT and Cornell, teaching thousands of students over the years and earning an average student evaluation over 4.9 out of 5.0. He also runs his own software company and teaches week-long classes to corporate programmers on Java around the country.

    View Steve Holzner's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animals on the cover of Eclipse Cookbook are pole shrimp (Macrobrachium rosenbergii). These crustaceans can be found in freshwater streams and waterholes as well as in the brackish water and estuaries of the Indo-Pacific region.

Shrimp are similar to crayfish, but their arms are long with fine claws. As with most arthropods, a pole shrimp has an exoskeleton; instead of muscles connected over a bony internal skeleton, its muscles attach underneath, on the rigid, calcium-impregnated carapace. Six long feelers covered with chemoreceptor cells allow the shrimp to detect the smell of food in the water. The pole shrimp continually uses these feelers to scrub itself, removing pieces of dirt that may affect its function.

Like all crustaceans, pole shrimp grow through molting. Before molting, they grow a new shell beneath their old one; this new carapace is soft and somewhat folded, something like an empty balloon. The new carapace inflates with water, splitting the old one at the weakened points. The old carapace splits in half, and the entire head section slides out of the old shell. A sharp flick of the tail leaves the old exoskeleton lying at the bottom of the sea. Mary Anne Weeks Mayo was the production editor and proofreader, and Audrey Doyle was the copyeditor for Eclipse Cookbook. Phil Dangler and Emily Quill provided quality control. Jamie Peppard and Mary Agner provided production assistance. Tom Dinse wrote the index.

Emma Colby designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from Cuvier's Animals. Emma produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.

Melanie Wang designed the interior layout, based on a series design by David Futato. This book was converted by Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was compiled by Mary Anne Weeks Mayo.

  • Book cover of Eclipse Cookbook