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 an E4 application


Eclipse applications use an application ID to launch and start execution. For E4 applications, org.eclipse.e4.ui.workbench.swt.E4Application is used. A new E4 application will be created to demonstrate a standalone E4 application.

  1. Go to the File | New | Project… menu and choose Plug-in Project.

  2. Use the name com.packtpub.e4.application, and step through the wizard. Choose the default values for each field, ensuring that the activator checkbox is selected, the This plug-in will make contributions to the UI is selected, and Would you like to create a rich client application? is Yes:

  3. Click on Next and then choose the Eclipse 4 RCP application template. Click on Next again and ensure that Create sample content is selected:

  4. Click on Finish and the project will be created.

  5. Right-click on the com.packtpub.e4.application project and choose Run As | Eclipse Application. This launches a new version of the IDE, which is not intended.

    Note

    To launch the project...