Chapter 5 – Storing Preferences and Settings
Understanding preferences
1. The default style is FLAT
but this can be overridden to provide GRID
, which provides a better layout for preference pages.
2. There are many subclasses of FieldEditor
, which include editors for Boolean
, Color
, Combo
, Font
, List
, RadioGroup
, Scale
, String
, Integer
, Directory
, and File
.
3. To provide searching in a preference page, keywords must be registered via the keyword
extension point.
4. The @Preference
annotation, in conjunction with an @Inject
annotation, allows a preference store to be injected or a single preference value.
5. If a method is annotated/marked with @Inject
and the method parameter is marked with @Parameter
, then the method will be called whenever the value ...
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.