Mastering Eclipse Plug-in Development

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

Mastering Eclipse Plug-in Development

This ebook is included in a Mapt subscription
Dr Alex Blewitt

1 customer reviews
Build modular applications on Eclipse by defining custom extension points and using OSGi services
$0.00
$29.99
$49.99
$29.99p/m after trial
RRP $29.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783287796
Paperback362 pages

Book Description

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.

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

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
From 1 reviews

Read More Reviews

Recommended for You