Mastering Eclipse Plug-in Development

Build modular applications on Eclipse by defining custom extension points and using OSGi services

Mastering Eclipse Plug-in Development

Progressing
Dr Alex Blewitt

Build modular applications on Eclipse by defining custom extension points and using OSGi services
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free Sample

Book Details

ISBN 139781783287796
Paperback362 pages

About This Book

  • Master Eclipse plug-in development with this example-based and practical guide
  • Define new JFace wizards, custom extension points, and new commands for the Eclipse console
  • Get to grips with OSGI services and events to dynamically wire applications and communicate between plug-ins

Who This Book Is For

If you are a Java developer who is familiar with the Eclipse plug-in environment, this book covers the advanced concepts that you need to know to achieve true expertise. Prior experience in creating Eclipse plug-ins is assumed for this book.

Table of Contents

Chapter 1: Plugging in to JFace and the Common Navigator Framework
JFace wizards
Common navigator
Summary
Chapter 2: Creating Custom Extension Points
Extensions and extension points
Summary
Chapter 3: Using OSGi Services to Dynamically Wire Applications
Overview of services
Registering a service programmatically
Registering a service declaratively
Dynamic services
Dynamic Service Configuration
Summary
Chapter 4: Using the Gogo Shell and Commands
Consoles in Equinox
Extending the shell
Summary
Chapter 5: Native Code and Fragment Bundles
Native code and Eclipse
Native libraries in OSGi bundles
Reloading native libraries
OSGi fragment bundles
Summary
Chapter 6: Understanding ClassLoaders
Overview of ClassLoaders
ThreadContextClassLoaders
Java ServiceLoader
OSGi upgrade strategies
Summary
Chapter 7: Designing Modular Applications
Semantic versioning
Public APIs and version ranges
Baselining and automatic versioning
Design patterns
Best practices
Summary
Chapter 8: Event-driven Applications with EventAdmin
Understanding the OSGi EventAdmin service
Events and E4
Designing an event-based application
Summary
Chapter 9: Deploying and Updating with P2
Eclipse P2
Running P2 applications
P2 repositories
Touchpoints
Summary
Chapter 10: User Assistance in Eclipse
Help pages in Eclipse
Help Server and RCP
Cheat sheets
Summary

What You Will Learn

  • Create a custom extension point to allow other plug-ins to contribute
  • Employ Declarative Services and Blueprint for dynamic OSGi contributions
  • Extend the Common Navigator Framework to provide nested content
  • Build commands to extend the built-in Gogo shell
  • Use fragments to contribute native code to plug-ins
  • Fix code using the service loader and wrap non-OSGi-friendly JARs
  • Discover how to build modular applications with decoupled design patterns

In Detail

Mastering Eclipse Plug-in Development shows you how to build an extensible application using custom extension points and dynamic OSGi services in Eclipse. Dynamic design patterns such as whiteboard and extender are covered along with specific techniques to deal with native and legacy code.

This book dives right into the details and teaches you how to define new JFace wizards and extend Eclipse with custom extension points. Then the book moves quickly on to the details of how to define new commands for the Eclipse console and how to include native code in a plug-in. You will engage with modular application design patterns and Thread Context ClassLoaders before getting the details on how to create as well as manage P2 sites and write help documentation for an Eclipse plug-in.

Authors

Table of Contents

Chapter 1: Plugging in to JFace and the Common Navigator Framework
JFace wizards
Common navigator
Summary
Chapter 2: Creating Custom Extension Points
Extensions and extension points
Summary
Chapter 3: Using OSGi Services to Dynamically Wire Applications
Overview of services
Registering a service programmatically
Registering a service declaratively
Dynamic services
Dynamic Service Configuration
Summary
Chapter 4: Using the Gogo Shell and Commands
Consoles in Equinox
Extending the shell
Summary
Chapter 5: Native Code and Fragment Bundles
Native code and Eclipse
Native libraries in OSGi bundles
Reloading native libraries
OSGi fragment bundles
Summary
Chapter 6: Understanding ClassLoaders
Overview of ClassLoaders
ThreadContextClassLoaders
Java ServiceLoader
OSGi upgrade strategies
Summary
Chapter 7: Designing Modular Applications
Semantic versioning
Public APIs and version ranges
Baselining and automatic versioning
Design patterns
Best practices
Summary
Chapter 8: Event-driven Applications with EventAdmin
Understanding the OSGi EventAdmin service
Events and E4
Designing an event-based application
Summary
Chapter 9: Deploying and Updating with P2
Eclipse P2
Running P2 applications
P2 repositories
Touchpoints
Summary
Chapter 10: User Assistance in Eclipse
Help pages in Eclipse
Help Server and RCP
Cheat sheets
Summary

Book Details

ISBN 139781783287796
Paperback362 pages
Read More