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 CSS Spy is opened by pressing Alt + Shift + F5.

6. The IThemeEngine can be used to acquire a list of themes and change them dynamically in the application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.249.158