--- /dev/null
+package net.sourceforge.phpdt.tidy.preferences;
+
+import net.sourceforge.phpdt.tidy.JtidyPlugin;
+import org.eclipse.jface.preference.BooleanFieldEditor;
+import org.eclipse.jface.preference.FieldEditorPreferencePage;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+
+/**
+ * A preference page for a simple HTML editor.
+ */
+public class JTidyPreferences extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
+
+ public JTidyPreferences() {
+ super(FieldEditorPreferencePage.GRID);
+
+ // Set the preference store for the preference page.
+ IPreferenceStore store = JtidyPlugin.getDefault().getPreferenceStore();
+ setPreferenceStore(store);
+ }
+
+ /**
+ * @see org.eclipse.jface.preference.
+ * FieldEditorPreferencePage#createFieldEditors()
+ */
+ protected void createFieldEditors() {
+
+ BooleanFieldEditor showWarning =
+ new BooleanFieldEditor(IPreferenceConstants.GENERAL_SHOW_WARNINGS, "Show warnings", getFieldEditorParent());
+ addField(showWarning);
+
+ BooleanFieldEditor beQuiet =
+ new BooleanFieldEditor(IPreferenceConstants.GENERAL_QUIET, "Show no Errors", getFieldEditorParent());
+ addField(beQuiet);
+
+ BooleanFieldEditor tidyMark =
+ new BooleanFieldEditor(
+ IPreferenceConstants.GENERAL_TIDY_MARK,
+ "Set Tidy Mark in Header",
+ getFieldEditorParent());
+ addField(tidyMark);
+
+ }
+
+ /**
+ * @see IWorkbenchPreferencePage#init
+ */
+ public void init(IWorkbench workbench) {
+ }
+}