Search code examples
preferenceseclipse-pde

Adding a list to a PreferencePage


Update: So far I found class ListEditor which provides the functionality I'm searching for except the 'edit' button and only for one column.

The 'Proxy bypass' Page extends directly from PreferencePage. So there is no proper Base Class I could use.

--

The standard PDE way of adding Preference is to use field editors (for Boolean, String, Integer..) and subclass FieldEditorPreferencePage.

I'd like to integrate a list similar to the 'Network Connections' List in Preferences.

Network Connections Preferences http://img13.imageshack.us/img13/4489/screencapturegw.png

Is there a Standard List Class with Add/Edit/Remove Button I could use or is extending the PreferencePage and do all loading/saving manually the way to go?

the m2Eclipse Plugin also has a List m2Eclipse http://img695.imageshack.us/img695/1972/screencapture1.png

it uses TemplatePreferencePage, which has too much functionality


Solution

  • My conclusion is there is no proper Base Class I could use. However the Proxy Bypass Page is an example how to implement such a feature, it extends directly from PreferencePage