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

Chapter 8 – Migrating to Eclipse 4.x


1. Actions are replaced with handler classes, and annotated with the @Execute annotation.

2. A DoubleClickEvent provides selection through the getSelection method.

3. A view menu will only be shown if the supplementary tab has a tag with ViewMenu.

4. Classes are connected to a handler by specifying a contributor URI with a bundleclass: URI.

5. A platform: URI allows references to resources in other plug-ins, such as graphics or property files; a bundleclass: URI allows a reference to a class in a plug-in. The class reference will be automatically converted to a Java Class.

6. A part represents a rendered part that is shown on the window; a part descriptor represents the definition of the part such that it can be instantiated on demand.

7. Once the pop-up menu has been created, it is necessary to use the EMenuService to register the control handler to the ID specified of the pop-up menu.

8. The selection can be obtained from the viewer using getSelection, but this will not trigger when it changes—to receive events when it does change, the viewer will need to have a selection listener added, which can then forward it to the Eclipse 4.x ESelectionService.