--- /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 JTidyOutputLookPreferences extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
+
+ public JTidyOutputLookPreferences() {
+ 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() {
+ // public static final String OUT_UPPER_TAGS = "__out_upper_Tags";
+ BooleanFieldEditor useUpperTags =
+ new BooleanFieldEditor(IPreferenceConstants.OUT_UPPER_TAGS, "Uppercase Tags", getFieldEditorParent());
+ addField(useUpperTags);
+
+ // public static final String OUT_UPPER_ATTR = "__out_upper_attr";
+ BooleanFieldEditor useUpperAttr =
+ new BooleanFieldEditor(IPreferenceConstants.OUT_UPPER_ATTR, "Uppercase Atributes", getFieldEditorParent());
+ addField(useUpperAttr);
+
+ // public static final String OUT_BREAK_BR = "__out_break_befor_br";
+
+ BooleanFieldEditor breakBr =
+ new BooleanFieldEditor(IPreferenceConstants.OUT_BREAK_BR, "Break before BR", getFieldEditorParent());
+ addField(breakBr);
+ // public static final String OUT_WRAP_ATTR_VALUES = "__out_wrap_Attr_values";
+ BooleanFieldEditor warpAttrValues =
+ new BooleanFieldEditor(
+ IPreferenceConstants.OUT_WRAP_ATTR_VALUES,
+ "Wrap Attribute Values",
+ getFieldEditorParent());
+ addField(warpAttrValues);
+
+ // public static final String OUT_WRAP_SCRIPS = "__out_wrap_scripts";
+ BooleanFieldEditor warpScripts =
+ new BooleanFieldEditor(IPreferenceConstants.OUT_WRAP_SCRIPS, "Wrap Scripts", getFieldEditorParent());
+ addField(warpScripts);
+
+ // public static final String OUT_AS_RAW = "__out_as_raw";
+
+ BooleanFieldEditor asRaw =
+ new BooleanFieldEditor(IPreferenceConstants.OUT_AS_RAW, "Output >128 chars as raw", getFieldEditorParent());
+ addField(asRaw);
+
+ }
+
+ /**
+ * @see IWorkbenchPreferencePage#init
+ */
+ public void init(IWorkbench workbench) {
+ }
+}