Book Image

Mastering Eclipse Plug-in Development

By : Alex Blewitt, Bandlem Limited
Book Image

Mastering Eclipse Plug-in Development

By: Alex Blewitt, Bandlem Limited

Overview of this book

Table of Contents (18 chapters)
Mastering Eclipse Plug-in Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Plugging in to JFace and the Common Navigator Framework
Index

Touchpoints


A touchpoint is a P2 configuration option that specifies an action to be performed when a feature is installed/configured or unconfigured/uninstalled. This can be used to add additional flags to the Eclipse configuration file, making directories, updating permissions on files, as well as installing bundles and features.

There are two default categories of touchpoint actions:

  • org.eclipse.equinox.p2.touchpoint.natives, which mainly operates on files, permissions, and copying or creating directories and ZIP files

  • org.eclipse.equinox.p2.touchpoint.eclipse, installing bundles, features, source references, repositories, and modifying the JVM start-up or system properties

Touchpoints are stored in touchpoint advice files called p2.inf that can be stored in one of the following three locations:

  • Inside the META-INF directory of a bundle

  • Next to the feature.xml file in a feature

  • Next to the .product file in a product

The touchpoint advice is added to the bundle, feature, or product when it is...