Book description
You've probably heard the buzz about Eclipse, the powerful open source platform that gives Java developers a new way to approach development projects. It's like a shiny new car--no longer content to just admire Eclipse, you're now itching to get in and drive. Eclipse is to Java developers what Visual Studio is to .NET developers--it's an integrated development environment (IDE) that combines a code editor, compiler, debugger, text editor, graphical user interface (GUI) builder, and other components into a single, user-friendly application. It provides a solid foundation that enables Java developers to construct and run integrated software-development tools for web development, application design, modeling, performance, testing, and much more. As with any extensive programming tool, however, there's a lot to learn. And there s no better guy than well-known Java expert Steve Holzner to teach you. An award-winning and best-selling author who has been writing about Java topics since the language first appeared, Holzner delivers just the kind of targeted, practical, everyday knowledge you need to hone your mastery of Eclipse. Perfect as a companion to an Eclipse programming tutorial (such as Holzner's own Eclipse, O'Reilly, April 2004) or an ideal stand-alone for all those developers who either don't want or don't need the tutorial approach, the Eclipse Cookbook contains task-oriented recipes for more than 800 situations you may encounter while using this new Java platform--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. Each recipe in the ever-popular and utterly practical problem-solution-discussion format for O'Reilly cookbooks contains a clear and thorough description of the problem, a brief but complete discussion of a solution, and in-action examples illustrating that solution. The Eclipse Cookbook will satiate Java programmers at all levels who are ready to go beyond tutorials--far beyond writing plug-ins and extensions--and actually use the powerful and convenient Eclipse day to day.
Table of contents
-
Eclipse Cookbook
- Preface
-
1. Basic Skills
- Introduction
- 1.1. Getting Eclipse
- 1.2. Installing and Running Eclipse
- 1.3. Understanding Your Workspace
- 1.4. Running Multiple Eclipse Windows
- 1.5. Creating a Java Project
- 1.6. Managing Perspectives, Views, and Editors
- 1.7. Mastering the Java Perspective
- 1.8. Creating a Java Class
- 1.9. Completing Code Automatically
- 1.10. Running Your Code
- 1.11. Running Code Snippets
- 1.12. Fixing Syntax Errors Automatically
- 1.13. Keeping Your Workspace Clear
- 1.14. Recovering from Total Disaster
-
2. Using Eclipse
- Introduction
- 2.1. Showing/Hiding Views
- 2.2. Moving a View or Toolbar
- 2.3. Accessing Any Project File
- 2.4. Tiling Editors
- 2.5. Maximizing Views and Editors
- 2.6. Going Back to the Previous Editor
- 2.7. Going Back to the Previous Edit Location
- 2.8. Linking Views to Editors
- 2.9. Reordering View and Editor Tabs
- 2.10. Navigating from an Editor to a View
- 2.11. Creating a Key Binding
- 2.12. Displaying More Resource Information with Icons
- 2.13. Using a Different Workspace
- 2.14. Creating a Task
- 2.15. Creating a Bookmark
- 2.16. Creating a Fast View
- 2.17. Customizing Help
- 2.18. Restoring Deleted Resources
- 2.19. Customizing a Perspective
- 2.20. Restoring a Perspective
- 2.21. Creating a New Perspective
-
3. Java Development
- Introduction
- 3.1. Speeding Up the JDT Editor
- 3.2. Creating a Java Project
- 3.3. Creating Java Packages
- 3.4. Creating a Java Class
- 3.5. Creating a Java Method
- 3.6. Overriding a Java Method
- 3.7. Getting Method Parameter Hints
- 3.8. Inserting Method Parameter Names
- 3.9. Creating Getter/Setter Methods
- 3.10. Creating Delegate Methods
- 3.11. Surrounding Code with do/for/if/try/while Blocks
- 3.12. Finding the Matching Brace
- 3.13. Automatically Wrapping Strings
- 3.14. Creating a Constructor
- 3.15. Converting Constructors to Factory Methods
- 3.16. Commenting Out a Section of Code
- 3.17. Creating Working Sets
- 3.18. Creating TODO Tasks
- 3.19. Customizing Code Assist
-
4. Refactoring, Building, and Launching
- Introduction
- 4.1. Renaming Elements
- 4.2. Moving Elements
- 4.3. Extracting and Implementing Interfaces
- 4.4. Searching Code
- 4.5. Comparing Files
- 4.6. Comparing Files Against Local History
- 4.7. Restoring Elements and Files from Local History
- 4.8. Selecting the Java Runtime for Builds
- 4.9. Running Your Code
- 4.10. Building Your Code
- 4.11. Using .jar and .class Files
- 4.12. Setting the Launch Configuration
-
5. Testing and Debugging
- Introduction
- 5.1. Installing JUnit
- 5.2. Testing an Application with JUnit
- 5.3. Starting a Debugging Session
- 5.4. Setting a Breakpoint
- 5.5. Stepping Through Your Code
- 5.6. Running Until Encountering a Breakpoint
- 5.7. Running to a Line of Code You Select
- 5.8. Watching Expressions and Variables
- 5.9. Setting a Hit Count for Breakpoints
- 5.10. Configuring Breakpoint Conditions
- 5.11. Creating Field, Method, and Exception Breakpoints
- 5.12. Evaluating Expressions
- 5.13. Assigning Values to Variables While Debugging
- 5.14. Changing Code on the Fly
-
6. Using Eclipse in Teams
- Introduction
- 6.1. Getting a CVS Server
- 6.2. Creating a CVS Repository
- 6.3. Connecting Eclipse to a CVS Repository
- 6.4. Storing an Eclipse Project in a CVS Repository
- 6.5. Committing Files to the CVS Repository
- 6.6. Visually Labeling Files Under Version Control
- 6.7. Examining the CVS Repository
- 6.8. Checking Projects Out of a CVS Repository
- 6.9. Updating Your Code from a CVS Repository
- 6.10. Synchronizing Your Code with the CVS Repository
- 6.11. Creating Code Patches
- 6.12. Naming Code Versions
- 6.13. Creating CVS Branches
-
7. Eclipse and Ant
- Introduction
- 7.1. Connecting Ant to Eclipse
- 7.2. Building an Eclipse Application Using Ant
- 7.3. Catching Ant Build File Syntax Problems
- 7.4. Using a Different Build File
- 7.5. Using Your Own Version of Ant
- 7.6. Setting Types and Global Properties
- 7.7. Setting Ant Editor Options
- 7.8. Setting Ant Arguments
- 7.9. Using the Ant View
- 7.10. Using Ant as an External Tool
-
8. SWT: Text, Buttons, Lists, and Nonrectangular Windows
- Introduction
- 8.1. Working with SWT Widgets
- 8.2. Creating an SWT Application
- 8.3. Adding the Required SWT JAR Files to the Build Path
- 8.4. Launching an SWT Application
- 8.5. Positioning Widgets and Using Layouts
- 8.6. Creating Button and Text Widgets
- 8.7. Handling SWT Widget Events
- 8.8. Creating List Widgets
- 8.9. Creating Composite Widgets
- 8.10. Creating Nonrectangular Windows
- 8.11. Multithreading SWT Applications
-
9. SWT: Dialogs, Toolbars, Menus, and More
- Introduction
- 9.1. Creating Message Boxes
- 9.2. Creating Dialogs
- 9.3. Creating Toolbars
- 9.4. Embedding Buttons in Toolbars
- 9.5. Handling Toolbar Events
- 9.6. Embedding Combo Boxes, Text Widgets, and Menus in Toolbars
- 9.7. Creating a Menu System
- 9.8. Creating Text Menu Items
- 9.9. Creating Image Menu Items
- 9.10. Creating Radio Menu Items
- 9.11. Creating Menu Item Accelerators and Mnemonics
- 9.12. Enabling and Disabling Menu Items
- 9.13. Creating Menu Separators
- 9.14. Creating Tables
- 9.15. Creating Table Columns
- 9.16. Adding Check Marks to Table Items
- 9.17. Enabling and Disabling Table Items
- 9.18. Adding Images to Table Items
- 9.19. Using Swing and AWT Inside SWT
-
10. SWT: Coolbars, Tab Folders, Trees, and Browsers
- Introduction
- 10.1. Creating SWT Tab Folders
- 10.2. Creating SWT Coolbars
- 10.3. Adding Items to Coolbars
- 10.4. Adding Drop-Down Menus to Coolbars
- 10.5. Creating SWT Trees
- 10.6. Handling Tree Events
- 10.7. Adding Checkboxes to Tree Items
- 10.8. Adding Images to Tree Items
- 10.9. Creating SWT Browser Widgets
-
11. JSP, Servlets, and Eclipse
- Introduction
- 11.1. Installing Tomcat
- 11.2. Starting Tomcat
- 11.3. Creating JSP Files
- 11.4. Creating a Servlet
- 11.5. Installing a Servlet in Tomcat
- 11.6. Creating a Servlet in Place
- 11.7. Editing web.xml in Place
- 11.8. Avoiding Output Folder Scrubs
- 11.9. Interfacing to JavaBeans
- 11.10. Using a Tomcat Plug-in
- 11.11. Creating WAR Files
-
12. Creating Plug-ins: Extension Points, Actions, and Menus
- Introduction
- 12.1. Installing a Plug-in
- 12.2. Creating plugin.xml
- 12.3. Creating a Menu-Based Plug-in Using Wizards
- 12.4. Testing Plug-ins with the Run-time Workbench
- 12.5. Deploying a Plug-in
- 12.6. Writing a Plug-in from a Skeleton
- 12.7. Responding to User Actions in a Plug-in
- 12.8. Creating a Plug-in Menu from Scratch
- 12.9. Creating Actions
- 12.10. Coding a Plug-in Action
- 12.11. Automatically Adding a Plug-in to a Perspective
- 13. Creating Plug-ins: Wizards, Editors, and Views
- Index
- Colophon
Product information
- Title: Eclipse Cookbook
- Author(s):
- Release date: June 2004
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596007102
You might also like
book
Java EE 8 Development with Eclipse
Develop and deploy fully functional applications and microservices utilising Tomcat, Glassfish servers, Cloud and docker in …
book
Eclipse Plug-in Development Beginner's Guide - Second Edition
Develop skills to build powerful plug-ins with Eclipse IDE through examples About This Book Create useful …
video
Learning Eclipse Java IDE
In this Eclipse Java IDE training course, expert author Brian Gorman teaches you how to develop …
book
Eclipse
Java programmers know how finicky Java can be to work with. An omitted semi-colon or the …