1) Added missing strings for italic, underline and strike through.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.jtidy / src / net / sourceforge / phpdt / tidy / preferences / JTidyWrapIndentPreferences.java
1 package net.sourceforge.phpdt.tidy.preferences;
2
3 import net.sourceforge.phpdt.tidy.JtidyPlugin;
4
5 import org.eclipse.jface.preference.BooleanFieldEditor;
6 import org.eclipse.jface.preference.FieldEditorPreferencePage;
7 import org.eclipse.jface.preference.IPreferenceStore;
8 import org.eclipse.ui.IWorkbench;
9 import org.eclipse.ui.IWorkbenchPreferencePage;
10
11 /**
12  * A preference page for a simple HTML editor.
13  */
14 public class JTidyWrapIndentPreferences
15   extends FieldEditorPreferencePage
16   implements IWorkbenchPreferencePage, IPreferenceConstants {
17
18   public JTidyWrapIndentPreferences() {
19     super(FieldEditorPreferencePage.GRID);
20
21     // Set the preference store for the preference page.
22     IPreferenceStore store = JtidyPlugin.getDefault().getPreferenceStore();
23     setPreferenceStore(store);
24   }
25
26   /**
27    * @see org.eclipse.jface.preference.
28    * FieldEditorPreferencePage#createFieldEditors()
29    */
30   protected void createFieldEditors() {
31
32     BooleanFieldEditor wrapAttVals = new BooleanFieldEditor(WRAP_ATT_VALS, "Wrap attributes", getFieldEditorParent());
33     addField(wrapAttVals);
34     //           public static final String OUTPUT_STRIP_WORD   = "__out_strip_Word";
35     BooleanFieldEditor wrapScriplets = new BooleanFieldEditor(WRAP_SCRIPTLETS, "Wrap script literals", getFieldEditorParent());
36     addField(wrapScriplets);
37
38     BooleanFieldEditor wrapSection = new BooleanFieldEditor(WRAP_SECTION, "Wrap Section", getFieldEditorParent());
39     addField(wrapSection);
40     //           public static final String OUTPUT_ENCLOSE_BLOCK_TEXT   = "__out_encloseBlock";
41     BooleanFieldEditor wrapASP = new BooleanFieldEditor(WRAP_ASP, "Wrap ASP", getFieldEditorParent());
42     addField(wrapASP);
43
44     BooleanFieldEditor wrapJSTE = new BooleanFieldEditor(WRAP_JSTE, "Wrap JSTE", getFieldEditorParent());
45     addField(wrapJSTE);
46
47     BooleanFieldEditor wrapPHP = new BooleanFieldEditor(WRAP_PHP, "Wrap PHP", getFieldEditorParent());
48     addField(wrapPHP);
49
50     BooleanFieldEditor indentAttr = new BooleanFieldEditor(INDENT_ATTRIBUTES, "Indent Attributes", getFieldEditorParent());
51     addField(indentAttr);
52
53     BooleanFieldEditor literalAttr = new BooleanFieldEditor(LITERAL_ATTRIBS, "Literal Attributes", getFieldEditorParent());
54     addField(literalAttr);
55   }
56
57   /**
58    * @see IWorkbenchPreferencePage#init
59    */
60   public void init(IWorkbench workbench) {
61   }
62 }