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.FileFieldEditor;
7 import org.eclipse.jface.preference.IPreferenceStore;
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));
38 addField(new FileFieldEditor(WikiEditorPlugin.LOCAL_TEMPLATE_FILE_NAME, Messages.getString("WikiProjectPreferences.LocalTemplateFile"), composite));
39 addField(new FileFieldEditor(WikiEditorPlugin.EXPORT_TEMPLATE_FILE_NAME, Messages.getString("WikiProjectPreferences.ExportTemplateFile"), composite));
46 * @see org.eclipse.jface.preference.PreferencePage#doGetPreferenceStore()
48 protected IPreferenceStore doGetPreferenceStore() {
49 return WikiEditorPlugin.getDefault().getPreferenceStore();
55 * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
57 public void init(IWorkbench workbench) {
58 setDescription("Default entries static wiki pages.");