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 parent project


It's common for the parent and child projects to be located outside the workspace; for historical reasons, Eclipse doesn't deal well with nested projects in the workspace. It's also common for the parent project to host all of the Tycho configuration information, which makes setting up the child projects a lot easier.

  1. Create a General project by navigating to the File | New | Project | General | Project menu.

  2. Unselect Use default location.

  3. Put in a location that is outside the Eclipse workspace.

  4. Name the project com.packtpub.e4.parent.

  5. Click on Finish.

  6. Create a new file pom.xml in the root of the project.

  7. Copy the content of the com.packtpub.e4.clock.ui plug-in's pom.xml file to the parent, but change the artifactId to com.packtpub.e4.parent and the packaging to pom.

  8. Create a properties element in the pom.xml file and inside a tycho.version element with the value 0.25.0, as well as an eclipse element with the value http://download.eclipse.org/releases...