1 package net.sourceforge.phpeclipse.wiki.preferences;
3 import net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin;
5 import org.eclipse.jface.preference.DirectoryFieldEditor;
6 import org.eclipse.jface.preference.IPreferenceStore;
7 import org.eclipse.jface.preference.PathEditor;
8 import org.eclipse.swt.widgets.Composite;
9 import org.eclipse.ui.IWorkbench;
10 import org.eclipse.ui.IWorkbenchPreferencePage;
14 * This page will be added to the project's property page dialog when the "Properties..." popup menu item is selected
16 public class WikiProjectPreferences extends FieldEditorOverlayPage implements IWorkbenchPreferencePage {
18 public final static String PREF_ID = "net.sourceforge.phpeclipse.wiki.preferences.WikiProjectPreferences";
20 public WikiProjectPreferences() {
27 * @see net.sourceforge.phpeclipse.wiki.preferences.FieldEditorOverlayPage#getPageId()
29 protected String getPageId() {
33 protected void createFieldEditors() {
34 Composite composite = getFieldEditorParent();
36 addField(new DirectoryFieldEditor(WikiEditorPlugin.HTML_OUTPUT_PATH, Messages.getString("WikiProjectPreferences.StaticWikiFolder"), composite));
37 addField(new DirectoryFieldEditor(WikiEditorPlugin.WIKI_TEXTS_BASE_PATH, Messages.getString("WikiProjectPreferences.WikiTextsFolder"), composite));
43 * @see org.eclipse.jface.preference.PreferencePage#doGetPreferenceStore()
45 protected IPreferenceStore doGetPreferenceStore() {
46 return WikiEditorPlugin.getDefault().getPreferenceStore();
52 * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
54 public void init(IWorkbench workbench) {
55 setDescription("Default entries static wiki pages.");