package net.certware.history.preferences; import org.eclipse.jface.preference.*; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.IWorkbench; import net.certware.history.Activator; /** * History preference page. * @author mrb * @since 1.0 */ public class PreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage { /** * Preference page for history. * Sets the preference store, description, and image descriptor. */ public PreferencePage() { super(GRID); setPreferenceStore(Activator.getDefault().getPreferenceStore()); setDescription("History"); setImageDescriptor(Activator.imageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/obj16/history.gif")); } /** * Creates the field editors. */ public void createFieldEditors() { addField(new DirectoryFieldEditor(PreferenceConstants.P_REPOSITORY_PATH, "&Repository directory:", getFieldEditorParent())); /* addField( new BooleanFieldEditor( PreferenceConstants.P_BOOLEAN, "&An example of a boolean preference", getFieldEditorParent())); addField(new RadioGroupFieldEditor( PreferenceConstants.P_CHOICE, "An example of a multiple-choice preference", 1, new String[][] { { "&Choice 1", "choice1" }, { "C&hoice 2", "choice2" } }, getFieldEditorParent())); addField( new StringFieldEditor(PreferenceConstants.P_STRING, "A &text preference:", getFieldEditorParent())); */ } /* (non-Javadoc) * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) */ public void init(IWorkbench workbench) { } }