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 – exporting a feature


Once a feature has been created and has one or more plug-ins added, they can be exported from the workbench. An exported feature can be installed into other Eclipse instances, as the next section will demonstrate. Note that exporting a feature also builds and exports all the associated plug-ins.

  1. To export a plug-in, go to File | Export | Deployable features. This will give a dialog with the option to select any features in the workspace.

  2. Choose the com.packtpub.e4.feature and give a suitable directory location:

  3. Click on Finish and the feature and all of its plug-ins will be exported.

  4. Open the destination location in a file explorer and see the files created:

    • artifacts.jar

    • content.jar

    • features/com.packtpub.e4.feature_1.0.0.201605260958.jar

    • plugins/com.packtpub.e4.clock.ui_1.0.0.201605260958.jar

What just happened?

The File | Export | Deployable features action performed a number of steps under the covers. First, it compiled the referenced plug-ins into...