1 package net.sourceforge.phpdt.tidy.preferences;
3 import net.sourceforge.phpdt.tidy.JtidyPlugin;
4 import org.eclipse.jface.preference.FieldEditorPreferencePage;
5 import org.eclipse.jface.preference.IPreferenceStore;
6 import org.eclipse.jface.preference.StringFieldEditor;
7 import org.eclipse.ui.IWorkbench;
8 import org.eclipse.ui.IWorkbenchPreferencePage;
11 * A preference page for a simple HTML editor.
13 public class JTidyNewTagsPreferences extends FieldEditorPreferencePage implements IWorkbenchPreferencePage, IPreferenceConstants {
15 public JTidyNewTagsPreferences() {
16 super(FieldEditorPreferencePage.GRID);
18 // Set the preference store for the preference page.
19 IPreferenceStore store = JtidyPlugin.getDefault().getPreferenceStore();
20 setPreferenceStore(store);
24 * @see org.eclipse.jface.preference.
25 * FieldEditorPreferencePage#createFieldEditors()
27 protected void createFieldEditors() {
28 // For developing with template engines or something like this...
29 LabelFieldEditor seperate = new LabelFieldEditor("Seperate the values with <space>", getFieldEditorParent());
32 StringFieldEditor emptyTags = new StringFieldEditor(INPUT_NEW_EMPTY_TAGS, "New empy tags:", getFieldEditorParent());
35 StringFieldEditor inlineTags = new StringFieldEditor(INPUT_NEW_INLINE_TAGS, "New inline tags:", getFieldEditorParent());
38 StringFieldEditor blockTags = new StringFieldEditor(INPUT_NEW_BLOCKLEVEL_TAGS, "New blocklevel tags:", getFieldEditorParent());
41 StringFieldEditor preTags = new StringFieldEditor(INPUT_NEW_PRE_TAGS, "New pre tags:", getFieldEditorParent());
47 * @see IWorkbenchPreferencePage#init
49 public void init(IWorkbench workbench) {