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 – going to the dark side


Eclipse 4 added several new themes for Eclipse, one of which was an updated dark theme. This can be added to an Eclipse 4 application through the use of the org.eclipse.ui.themes plug-in.

  1. Edit the .product file and ensure that the org.eclipse.ui.themes is added as a required bundle of the product on the Contents tab. This will ensure that if the product is exported then it contains the required plug-in.

  2. Update the launch configuration, by going to the Run | Run... menu and selecting the Eclipse 4 application. On the plug-ins tab, type org.eclipse.ui.themes into the search box, where type filter text is shown. Ensure that the checkbox next to the plug-in is checked.

  3. Edit the css/default.css file and add the following to the top:

    @import url("platform:/plugin/org.eclipse.ui.themes/css/e4-dark.css");
  4. Run the Eclipse 4 application and the application should be shown in the dark theme:

What just happened?

The standard Eclipse themes are delivered inside the...