This book is Eclipse from cover to cover. We will solve hundreds of Eclipse problems, and discuss dozens of issues, from installing all the way to reinstalling if some catastrophe occurs.
Chapter 1. Basic Skills
Introduction
Section 1.1. Getting Eclipse
Section 1.2. Installing and Running Eclipse
Section 1.3. Understanding Your Workspace
Section 1.4. Running Multiple Eclipse Windows
Section 1.5. Creating a Java Project
Section 1.6. Managing Perspectives, Views, and Editors
Section 1.7. Mastering the Java Perspective
Section 1.8. Creating a Java Class
Section 1.9. Completing Code Automatically
Section 1.10. Running Your Code
Section 1.11. Running Code Snippets
Section 1.12. Fixing Syntax Errors Automatically
Section 1.13. Keeping Your Workspace Clear
Section 1.14. Recovering from Total Disaster
Chapter 2. Using Eclipse
Introduction
Section 2.1. Showing/Hiding Views
Section 2.2. Moving a View or Toolbar
Section 2.3. Accessing Any Project File
Section 2.4. Tiling Editors
Section 2.5. Maximizing Views and Editors
Section 2.6. Going Back to the Previous Editor
Section 2.7. Going Back to the Previous Edit Location
Section 2.8. Linking Views to Editors
Section 2.9. Reordering View and Editor Tabs
Section 2.10. Navigating from an Editor to a View
Section 2.11. Creating a Key Binding
Section 2.12. Displaying More Resource Information with Icons
Section 2.13. Using a Different Workspace
Section 2.14. Creating a Task
Section 2.15. Creating a Bookmark
Section 2.16. Creating a Fast View
Section 2.17. Customizing Help
Section 2.18. Restoring Deleted Resources
Section 2.19. Customizing a Perspective
Section 2.20. Restoring a Perspective
Section 2.21. Creating a New Perspective
Chapter 3. Java Development
Introduction
Section 3.1. Speeding Up the JDT Editor
Section 3.2. Creating a Java Project
Section 3.3. Creating Java Packages
Section 3.4. Creating a Java Class
Section 3.5. Creating a Java Method
Section 3.6. Overriding a Java Method
Section 3.7. Getting Method Parameter Hints
Section 3.8. Inserting Method Parameter Names
Section 3.9. Creating Getter/Setter Methods
Section 3.10. Creating Delegate Methods
Section 3.11. Surrounding Code with do/for/if/try/while Blocks
Section 3.12. Finding the Matching Brace
Section 3.13. Automatically Wrapping Strings
Section 3.14. Creating a Constructor
Section 3.15. Converting Constructors to Factory Methods
Section 3.16. Commenting Out a Section of Code
Section 3.17. Creating Working Sets
Section 3.18. Creating TODO Tasks
Section 3.19. Customizing Code Assist
Chapter 4. Refactoring, Building, and Launching
Introduction
Section 4.1. Renaming Elements
Section 4.2. Moving Elements
Section 4.3. Extracting and Implementing Interfaces
Section 4.4. Searching Code
Section 4.5. Comparing Files
Section 4.6. Comparing Files Against Local History
Section 4.7. Restoring Elements and Files from Local History
Section 4.8. Selecting the Java Runtime for Builds
Section 4.9. Running Your Code
Section 4.10. Building Your Code
Section 4.11. Using .jar and .class Files
Section 4.12. Setting the Launch Configuration
Chapter 5. Testing and Debugging
Introduction
Section 5.1. Installing JUnit
Section 5.2. Testing an Application with JUnit
Section 5.3. Starting a Debugging Session
Section 5.4. Setting a Breakpoint
Section 5.5. Stepping Through Your Code
Section 5.6. Running Until Encountering a Breakpoint
Section 5.7. Running to a Line of Code You Select
Section 5.8. Watching Expressions and Variables
Section 5.9. Setting a Hit Count for Breakpoints
Section 5.10. Configuring Breakpoint Conditions
Section 5.11. Creating Field, Method, and Exception Breakpoints
Section 5.12. Evaluating Expressions
Section 5.13. Assigning Values to Variables While Debugging
Section 5.14. Changing Code on the Fly
Chapter 6. Using Eclipse in Teams
Introduction
Section 6.1. Getting a CVS Server
Section 6.2. Creating a CVS Repository
Section 6.3. Connecting Eclipse to a CVS Repository
Section 6.4. Storing an Eclipse Project in a CVS Repository
Section 6.5. Committing Files to the CVS Repository
Section 6.6. Visually Labeling Files Under Version Control
Section 6.7. Examining the CVS Repository
Section 6.8. Checking Projects Out of a CVS Repository
Section 6.9. Updating Your Code from a CVS Repository
Section 6.10. Synchronizing Your Code with the CVS Repository
Section 6.11. Creating Code Patches
Section 6.12. Naming Code Versions
Section 6.13. Creating CVS Branches
Chapter 7. Eclipse and Ant
Introduction
Section 7.1. Connecting Ant to Eclipse
Section 7.2. Building an Eclipse Application Using Ant
Section 7.3. Catching Ant Build File Syntax Problems
Section 7.4. Using a Different Build File
Section 7.5. Using Your Own Version of Ant
Section 7.6. Setting Types and Global Properties
Section 7.7. Setting Ant Editor Options
Section 7.8. Setting Ant Arguments
Section 7.9. Using the Ant View
Section 7.10. Using Ant as an External Tool
Chapter 8. SWT: Text, Buttons, Lists, and Nonrectangular Windows
Introduction
Section 8.1. Working with SWT Widgets
Section 8.2. Creating an SWT Application
Section 8.3. Adding the Required SWT JAR Files to the Build Path
Section 8.4. Launching an SWT Application
Section 8.5. Positioning Widgets and Using Layouts
Section 8.6. Creating Button and Text Widgets
Section 8.7. Handling SWT Widget Events
Section 8.8. Creating List Widgets
Section 8.9. Creating Composite Widgets
Section 8.10. Creating Nonrectangular Windows
Section 8.11. Multithreading SWT Applications
Chapter 9. SWT: Dialogs, Toolbars, Menus, and More
Introduction
Section 9.1. Creating Message Boxes
Section 9.2. Creating Dialogs
Section 9.3. Creating Toolbars
Section 9.4. Embedding Buttons in Toolbars
Section 9.5. Handling Toolbar Events
Section 9.6. Embedding Combo Boxes, Text Widgets, and Menus in Toolbars
Section 9.7. Creating a Menu System
Section 9.8. Creating Text Menu Items
Section 9.9. Creating Image Menu Items
Section 9.10. Creating Radio Menu Items
Section 9.11. Creating Menu Item Accelerators and Mnemonics
Section 9.12. Enabling and Disabling Menu Items
Section 9.13. Creating Menu Separators
Section 9.14. Creating Tables
Section 9.15. Creating Table Columns
Section 9.16. Adding Check Marks to Table Items
Section 9.17. Enabling and Disabling Table Items
Section 9.18. Adding Images to Table Items
Section 9.19. Using Swing and AWT Inside SWT
Chapter 10. SWT: Coolbars, Tab Folders, Trees, and Browsers
Introduction
Section 10.1. Creating SWT Tab Folders
Section 10.2. Creating SWT Coolbars
Section 10.3. Adding Items to Coolbars
Section 10.4. Adding Drop-Down Menus to Coolbars
Section 10.5. Creating SWT Trees
Section 10.6. Handling Tree Events
Section 10.7. Adding Checkboxes to Tree Items
Section 10.8. Adding Images to Tree Items
Section 10.9. Creating SWT Browser Widgets
Chapter 11. JSP, Servlets, and Eclipse
Introduction
Section 11.1. Installing Tomcat
Section 11.2. Starting Tomcat
Section 11.3. Creating JSP Files
Section 11.4. Creating a Servlet
Section 11.5. Installing a Servlet in Tomcat
Section 11.6. Creating a Servlet in Place
Section 11.7. Editing web.xml in Place
Section 11.8. Avoiding Output Folder Scrubs
Section 11.9. Interfacing to JavaBeans
Section 11.10. Using a Tomcat Plug-in
Section 11.11. Creating WAR Files
Chapter 12. Creating Plug-ins: Extension Points, Actions, and Menus
Introduction
Section 12.1. Installing a Plug-in
Section 12.2. Creating plugin.xml
Section 12.3. Creating a Menu-Based Plug-in Using Wizards
Section 12.4. Testing Plug-ins with the Run-time Workbench
Section 12.5. Deploying a Plug-in
Section 12.6. Writing a Plug-in from a Skeleton
Section 12.7. Responding to User Actions in a Plug-in
Section 12.8. Creating a Plug-in Menu from Scratch
Section 12.9. Creating Actions
Section 12.10. Coding a Plug-in Action
Section 12.11. Automatically Adding a Plug-in to a Perspective
Chapter 13. Creating Plug-ins: Wizards, Editors, and Views
Introduction
Section 13.1. Creating a Plug-in That Supports Wizards and Editors
Section 13.2. Customizing a Wizard
Section 13.3. Customizing an Editor
Section 13.4. Creating a Plug-in That Supports Views
Section 13.5. Adding Items to a View
Section 13.6. Configuring a View's Actions
About This Book
Chapter 1 - This chapter covers the basics—all you need to use Eclipse and handle routine tasks, including getting and installing Eclipse.
Chapter 2 - This chapter is all about the Eclipse workbench and what it offers. Covered are items such as editors, views, perspectives, and how to work with them in depth.
Chapter 3 - Eclipse excels at Java development, and this chapter starts our Java development. Here we'll use the Java Development Tools (JDT) to create and work with Java projects, classes, methods, code, and so on.
Chapter 4 - Refactoring handles the task when you need to rename or move elements in your code and update every occurrence throughout that code. This chapter covers refactoring and many advanced Java tasks. It also covers building projects and launching them, including setting launch configurations.
Chapter 5 - Where would an IDE be without debugging? The Eclipse debugger is first rate, and you'll get the story in this chapter, including breakpoints, breakpoint hit counters, watchpoints, changing your code on the fly, and a great deal more.
Chapter 6 - Eclipse also is built to be used in teams, and this chapter covers how to use Eclipse with a Concurrent Versions System (CVS) server so that code can be shared. You'll see how to connect Eclipse to a CVS server, how to store Eclipse projects in a CVS repository, how to check your files and projects, and more.
Chapter 7 - Ant is the best build tool for Java, and Eclipse comes with Ant support already built in. This chapter covers how to create Ant build files, how to execute them, and what you can do with Ant in Eclipse.
Chapter 8 - The Standard Widget Toolkit (SWT) comes built into Eclipse and is an extensive GUI API designed to replace Java's AWT and Swing. This first chapter of SWT coverage includes the basics on SWT as well as getting started with basic widgets such as buttons, lists, and composites, and how to create nonrectangular windows.
Chapter 9 - This chapter on SWT covers more SWT widgets, including advanced widgets such as dialogs, toolbars, menus, and tables. You'll also learn how to embed AWT/Swing windows in SWT applications.
Chapter 10 - This final chapter on SWT covers more SWT widgets: coolbars, tab folders, trees, and browsers.
Chapter 11 - Eclipse and web development are natural partners, and this chapter covers developing web applications with Eclipse, including JSP, JavaBeans, and servlets. You'll also learn how to create deployment packages for web applications.
Chapter 12 - This and the next chapter illustrate how to create your own Eclipse plug-ins. In this chapter, you'll get the details on extension points, actions, and creating plug-in menus.
Chapter 13 - This chapter concludes our focus on plug-ins; here, we'll create plug-ins that display wizards, views, and editors in Eclipse.