Book Image

Eclipse Plug-in Development Beginner's Guide - Second Edition

By : Alex Blewitt
Book Image

Eclipse Plug-in Development Beginner's Guide - Second Edition

By: Alex Blewitt

Overview of this book

Eclipse is used by everyone from indie devs to NASA engineers. Its popularity is underpinned by its impressive plug-in ecosystem, which allows it to be extended to meet the needs of whoever is using it. This book shows you how to take full advantage of the Eclipse IDE by building your own useful plug-ins from start to finish. Taking you through the complete process of plug-in development, from packaging to automated testing and deployment, this book is a direct route to quicker, cleaner Java development. It may be for beginners, but we're confident that you'll develop new skills quickly. Pretty soon you'll feel like an expert, in complete control of your IDE. Don't let Eclipse define you - extend it with the plug-ins you need today for smarter, happier, and more effective development.
Table of Contents (24 chapters)
Eclipse Plug-in Development Beginner's Guide Second Edition
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – creating a target definition


A target definition is a set of features and plug-ins that will be used to build plug-in and feature projects against. The target definition is an XML file that is typically persisted in a project or top-level container that can be shared in a source code repository for other developers to use.

  1. Create a new project by navigating to the File | New | Project… menu and selecting General | Project with the name com.packtpub.e4.target.mars.

  2. Create a new Target Definition by navigating to the File | New | Other… menu and searching for target:

  3. After clicking on Next choose the com.packtpub.e4.target.mars project to store the target definition, and call it com.packtpub.e4.target.mars. This will allow anyone building the project to use that target platform to build the project. Select the Base RCP (Binary Only) template:

  4. Open the newly created com.packtpub.e4.target.mars.target file and the target definition editor will be shown:

  5. Clicking on Set as Target...