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 – debugging the platform


To debug the platform, make sure that at least one plug-in project is open and that it depends on the plug-ins that need to be debugged. This allows the editor to be opened for any of the classes for debugging.

  1. Ensure that a plug-in that uses the Eclipse UI is open in the workspace, such as com.packtpub.e4.hello.ui or com.packtpub.e4.clock.ui. This will ensure that the platform classes are available.

  2. Use the Navigate | Open Type menu or press Ctrl + Shift + T (Cmd + Shift + T on macOS) to open the Open Type search dialog. Type in Shell and select the Shell from the org.eclipse.swt.widgets package. Double-click or click on OK to open the file.

    Tip

    If the source code isn't shown, verify that the Eclipse Platform Plug-in Developer Resources plug-in has been installed and that there is an open plug-in project that depends on org.eclipse.ui or org.eclipse.swt. If the Open Type menu isn't shown, switch to the Java perspective or the Java Browsing perspective...