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 view


The Eclipse UI consists of multiple views, which are the rectangular areas that display content, such as the Outline, Console, or Package Explorer. In Eclipse 3.x, views are created by adding an extension point to an existing plug-in, or using a template. A clock.ui plug-in will be created to host the clock widgets and views.

  1. Open the plug-in wizard by navigating to File | New | Other | Plug-in Project. Enter the details as follows:

    1. Set Project name to com.packtpub.e4.clock.ui.

    2. Ensure that Use default location is selected.

    3. Ensure that Create a Java project is selected.

    4. The Eclipse Version should be targeted to 3.5 or greater.

  2. Click on Next again, and fill in the plug-in properties:

    1. Set ID to com.packtpub.e4.clock.ui.

    2. Set Version to 1.0.0.qualifier.

    3. Set Name to Clock.

    4. Set Vendor to PacktPub.

    5. Ensure that Generate an Activator is selected.

    6. Set the Activator to com.packtpub.e4.clock.ui.Activator.

    7. Ensure that This plug-in will make contributions to the UI is selected.

    8. Rich...