Chapter 12Preference Pages

Most Eclipse plug-ins provide user-configurable preferences for controlling how they will execute and display information. The preference framework provides a mechanism for displaying these options to the user and saving the values across multiple Eclipse sessions. This chapter discusses how to create an Eclipse preference page and the techniques for recording and restoring a plug-in’s preferences.

12.1 Creating a Preference Page

You need to contribute a preference page that will allow users to select the columns that will be visible to the Favorites product. To accomplish this, create an org.eclipse.ui.preferencePages extension in the plug-in manifest. Fortunately, Eclipse provides a wizard for ...

Get Eclipse Plug-ins, Third 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.