Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Eclipse Cookbook
Table of Contents
Copyright
Preface
What's Inside
Conventions Used in This Book
What You'll Need
Using Code Examples
We'd Like to Hear from You
Chapter 1. Basic Skills
Introduction
Recipe 1.1 Getting Eclipse
Recipe 1.2 Installing and Running Eclipse
Recipe 1.3 Understanding Your Workspace
Recipe 1.4 Running Multiple Eclipse Windows
Recipe 1.5 Creating a Java Project
Recipe 1.6 Managing Perspectives, Views, and Editors
Recipe 1.7 Mastering the Java Perspective
Recipe 1.8 Creating a Java Class
Recipe 1.9 Completing Code Automatically
Recipe 1.10 Running Your Code
Recipe 1.11 Running Code Snippets
Recipe 1.12 Fixing Syntax Errors Automatically
Recipe 1.13 Keeping Your Workspace Clear
Recipe 1.14 Recovering from Total Disaster
Chapter 2. Using Eclipse
Introduction
Recipe 2.1 Showing/Hiding Views
Recipe 2.2 Moving a View or Toolbar
Recipe 2.3 Accessing Any Project File
Recipe 2.4 Tiling Editors
Recipe 2.5 Maximizing Views and Editors
Recipe 2.6 Going Back to the Previous Editor
Recipe 2.7 Going Back to the Previous Edit Location
Recipe 2.8 Linking Views to Editors
Recipe 2.9 Reordering View and Editor Tabs
Recipe 2.10 Navigating from an Editor to a View
Recipe 2.11 Creating a Key Binding
Recipe 2.12 Displaying More Resource Information with Icons
Recipe 2.13 Using a Different Workspace
Recipe 2.14 Creating a Task
Recipe 2.15 Creating a Bookmark
Recipe 2.16 Creating a Fast View
Recipe 2.17 Customizing Help
Recipe 2.18 Restoring Deleted Resources
Recipe 2.19 Customizing a Perspective
Recipe 2.20 Restoring a Perspective
Recipe 2.21 Creating a New Perspective
Chapter 3. Java Development
Introduction
Recipe 3.1 Speeding Up the JDT Editor
Recipe 3.2 Creating a Java Project
Recipe 3.3 Creating Java Packages
Recipe 3.4 Creating a Java Class
Recipe 3.5 Creating a Java Method
Recipe 3.6 Overriding a Java Method
Recipe 3.7 Getting Method Parameter Hints
Recipe 3.8 Inserting Method Parameter Names
Recipe 3.9 Creating Getter/Setter Methods
Recipe 3.10 Creating Delegate Methods
Recipe 3.11 Surrounding Code with do/for/if/try/while Blocks
Recipe 3.12 Finding the Matching Brace
Recipe 3.13 Automatically Wrapping Strings
Recipe 3.14 Creating a Constructor
Recipe 3.15 Converting Constructors to Factory Methods
Recipe 3.16 Commenting Out a Section of Code
Recipe 3.17 Creating Working Sets
Recipe 3.18 Creating TODO Tasks
Recipe 3.19 Customizing Code Assist
Chapter 4. Refactoring, Building, and Launching
Introduction
Recipe 4.1 Renaming Elements
Recipe 4.2 Moving Elements
Recipe 4.3 Extracting and Implementing Interfaces
Recipe 4.4 Searching Code
Recipe 4.5 Comparing Files
Recipe 4.6 Comparing Files Against Local History
Recipe 4.7 Restoring Elements and Files from Local History
Recipe 4.8 Selecting the Java Runtime for Builds
Recipe 4.9 Running Your Code
Recipe 4.10 Building Your Code
Recipe 4.11 Using .jar and .class Files
Recipe 4.12 Setting the Launch Configuration
Chapter 5. Testing and Debugging
Introduction
Recipe 5.1 Installing JUnit
Recipe 5.2 Testing an Application with JUnit
Recipe 5.3 Starting a Debugging Session
Recipe 5.4 Setting a Breakpoint
Recipe 5.5 Stepping Through Your Code
Recipe 5.6 Running Until Encountering a Breakpoint
Recipe 5.7 Running to a Line of Code You Select
Recipe 5.8 Watching Expressions and Variables
Recipe 5.9 Setting a Hit Count for Breakpoints
Recipe 5.10 Configuring Breakpoint Conditions
Recipe 5.11 Creating Field, Method, and Exception Breakpoints
Recipe 5.12 Evaluating Expressions
Recipe 5.13 Assigning Values to Variables While Debugging
Recipe 5.14 Changing Code on the Fly
Chapter 6. Using Eclipse in Teams
Introduction
Recipe 6.1 Getting a CVS Server
Recipe 6.2 Creating a CVS Repository
Recipe 6.3 Connecting Eclipse to a CVS Repository
Recipe 6.4 Storing an Eclipse Project in a CVS Repository
Recipe 6.5 Committing Files to the CVS Repository
Recipe 6.6 Visually Labeling Files Under Version Control
Recipe 6.7 Examining the CVS Repository
Recipe 6.8 Checking Projects Out of a CVS Repository
Recipe 6.9 Updating Your Code from a CVS Repository
Recipe 6.10 Synchronizing Your Code with the CVS Repository
Recipe 6.11 Creating Code Patches
Recipe 6.12 Naming Code Versions
Recipe 6.13 Creating CVS Branches
Chapter 7. Eclipse and Ant
Introduction
Recipe 7.1 Connecting Ant to Eclipse
Recipe 7.2 Building an Eclipse Application Using Ant
Recipe 7.3 Catching Ant Build File Syntax Problems
Recipe 7.4 Using a Different Build File
Recipe 7.5 Using Your Own Version of Ant
Recipe 7.6 Setting Types and Global Properties
Recipe 7.7 Setting Ant Editor Options
Recipe 7.8 Setting Ant Arguments
Recipe 7.9 Using the Ant View
Recipe 7.10 Using Ant as an External Tool
Chapter 8. SWT: Text, Buttons, Lists, and Nonrectangular Windows
Introduction
Recipe 8.1 Working with SWT Widgets
Recipe 8.2 Creating an SWT Application
Recipe 8.3 Adding the Required SWT JAR Files to the Build Path
Recipe 8.4 Launching an SWT Application
Recipe 8.5 Positioning Widgets and Using Layouts
Recipe 8.6 Creating Button and Text Widgets
Recipe 8.7 Handling SWT Widget Events
Recipe 8.8 Creating List Widgets
Recipe 8.9 Creating Composite Widgets
Recipe 8.10 Creating Nonrectangular Windows
Recipe 8.11 Multithreading SWT Applications
Chapter 9. SWT: Dialogs, Toolbars, Menus, and More
Introduction
Recipe 9.1 Creating Message Boxes
Recipe 9.2 Creating Dialogs
Recipe 9.3 Creating Toolbars
Recipe 9.4 Embedding Buttons in Toolbars
Recipe 9.5 Handling Toolbar Events
Recipe 9.6 Embedding Combo Boxes, Text Widgets, and Menus in Toolbars
Recipe 9.7 Creating a Menu System
Recipe 9.8 Creating Text Menu Items
Recipe 9.9 Creating Image Menu Items
Recipe 9.10 Creating Radio Menu Items
Recipe 9.11 Creating Menu Item Accelerators and Mnemonics
Recipe 9.12 Enabling and Disabling Menu Items
Recipe 9.13 Creating Menu Separators
Recipe 9.14 Creating Tables
Recipe 9.15 Creating Table Columns
Recipe 9.16 Adding Check Marks to Table Items
Recipe 9.17 Enabling and Disabling Table Items
Recipe 9.18 Adding Images to Table Items
Recipe 9.19 Using Swing and AWT Inside SWT
Chapter 10. SWT: Coolbars, Tab Folders, Trees, and Browsers
Introduction
Recipe 10.1 Creating SWT Tab Folders
Recipe 10.2 Creating SWT Coolbars
Recipe 10.3 Adding Items to Coolbars
Recipe 10.4 Adding Drop-Down Menus to Coolbars
Recipe 10.5 Creating SWT Trees
Recipe 10.6 Handling Tree Events
Recipe 10.7 Adding Checkboxes to Tree Items
Recipe 10.8 Adding Images to Tree Items
Recipe 10.9 Creating SWT Browser Widgets
Chapter 11. JSP, Servlets, and Eclipse
Introduction
Recipe 11.1 Installing Tomcat
Recipe 11.2 Starting Tomcat
Recipe 11.3 Creating JSP Files
Recipe 11.4 Creating a Servlet
Recipe 11.5 Installing a Servlet in Tomcat
Recipe 11.6 Creating a Servlet in Place
Recipe 11.7 Editing web.xml in Place
Recipe 11.8 Avoiding Output Folder Scrubs
Recipe 11.9 Interfacing to JavaBeans
Recipe 11.10 Using a Tomcat Plug-in
Recipe 11.11 Creating WAR Files
Chapter 12. Creating Plug-ins: Extension Points, Actions, and Menus
Introduction
Recipe 12.1 Installing a Plug-in
Recipe 12.2 Creating plugin.xml
Recipe 12.3 Creating a Menu-Based Plug-in Using Wizards
Recipe 12.4 Testing Plug-ins with the Run-time Workbench
Recipe 12.5 Deploying a Plug-in
Recipe 12.6 Writing a Plug-in from a Skeleton
Recipe 12.7 Responding to User Actions in a Plug-in
Recipe 12.8 Creating a Plug-in Menu from Scratch
Recipe 12.9 Creating Actions
Recipe 12.10 Coding a Plug-in Action
Recipe 12.11 Automatically Adding a Plug-in to a Perspective
Chapter 13. Creating Plug-ins: Wizards, Editors, and Views
Introduction
Recipe 13.1 Creating a Plug-in That Supports Wizards and Editors
Recipe 13.2 Customizing a Wizard
Recipe 13.3 Customizing an Editor
Recipe 13.4 Creating a Plug-in That Supports Views
Recipe 13.5 Adding Items to a View
Recipe 13.6 Configuring a View's Actions
Colophon
Index
index_A
index_B
index_C
index_D
index_E
index_F
index_G
index_H
index_I
index_J
index_K
index_L
index_M
index_N
index_O
index_P
index_Q
index_R
index_S
index_T
index_U
index_V
index_W
index_X
← Prev
Back
Next →
← Prev
Back
Next →