更新时间:2021-07-14 10:37:19
封面
版权页
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Time for action – heading
Conventions
Reader feedback
Customer support
Chapter 1. Creating Your First Plug-in
Getting started
Time for action – setting up the Eclipse environment
Time for action – creating a plug-in
Time for action – launching Eclipse from within Eclipse
Debugging a plug-in
Time for action – debugging a plug-in
Time for action – updating code in the debugger
Time for action – setting up step filtering
Time for action – breaking at method entry and exit
Time for action – setting a conditional breakpoint
Time for action – catching exceptions
Time for action – inspecting and watching variables
Summary
Chapter 2. Creating Views with SWT
Creating views and widgets
Time for action – creating a view
Time for action – drawing a custom view
Time for action – drawing a seconds hand
Time for action – animating the second hand
Time for action – running on the UI thread
Time for action – creating a reusable widget
Time for action – using layouts
Managing resources
Time for action – getting colorful
Time for action – finding the leak
Time for action – plugging the leak
Interacting with the user
Time for action – getting in focus
Time for action – responding to input
Using other SWT widgets
Time for action – adding items to the tray
Time for action – responding to the user
Time for action – modal and other effects
Time for action – groups and tab folders
Chapter 3. Creating JFace Viewers
Why JFace?
Creating TreeViewers
Time for action – creating a tree viewer
Time for action – using Images in JFace
Time for action – styling label providers
Sorting and filtering
Time for action – sorting items in a viewer
Time for action – filtering items in a viewer
Interaction
Time for action – adding a double-click listener
Tabular data
Time for action – viewing time zones in tables
Selection
Time for action – propagating selection
Time for action – responding to selection changes
Chapter 4. Interacting with the User
Creating menus commands and handlers
Time for action – installing the E4 tools
Time for action – creating commands and handlers
Time for action – binding commands to keys
Time for action – changing contexts
Time for action – enabling and disabling menus items
Time for action – contributing commands to pop-up menus
Jobs and progress
Time for action – running operations in the background
Time for action – reporting progress
Time for action – dealing with cancellation
Time for action – using subtasks and sub-progress monitors
Time for action – using null progress monitors and sub monitors
Time for action – setting job properties
Reporting errors
Time for action – showing errors
Chapter 5. Working with Preferences
Eclipse Preferences
Time for action – persisting a value
Time for action – injecting preferences
Time for action – injecting individual preferences
Time for action – responding to preference changes
Preference pages
Time for action – creating a preference page
Time for action – creating warning and error messages
Time for action: choosing from a list
Time for action – aligning field editors with a grid