Chapter 9 – Styling Eclipse 4 Applications

Styling Eclipse 4

1. Eclipse 4 parts can be styled with CSS, and the underlying renderer applies the styles on the fly, including if the CSS styles change. This allows theme managers to apply different color combinations in Eclipse 4 in ways not possible in Eclipse 3.

2. An Eclipse 4 Theme is a pre-configured set of colors and styles that can be applied to a user environment, as well as dynamically switched at runtime.

3. Elements can be referenced by a CSS class name (such as .MPart), by an ID (with # as a prefix and substitutingfor example . in identifier names), or by a Java class name directly.

4. To change all labels in Eclipse to italics, the CSS would look like:

Label { font-style: italic }

5. The ...

Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.