misc changes
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpeclipse / ui / PreferenceConstants.java
diff --git a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/PreferenceConstants.java b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/PreferenceConstants.java
new file mode 100644 (file)
index 0000000..6697534
--- /dev/null
@@ -0,0 +1,28 @@
+package net.sourceforge.phpeclipse.ui;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+
+public class PreferenceConstants {
+  /**
+   * A named preference that holds the characters that auto activate code assist in XML/HTML.
+   * <p>
+   * Value is of type <code>Sring</code>. All characters that trigger auto code assist in XML/HTML.
+   * </p>
+   */
+  public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML = "content_assist_autoactivation_triggers_html"; //$NON-NLS-1$
+
+  /**
+   * A named preference that defines if code assist proposals are sorted in alphabetical order.
+   * <p>
+   * Value is of type <code>Boolean</code>. If <code>true</code> that are sorted in alphabetical 
+   * order. If <code>false</code> that are unsorted.
+   * </p>
+   */
+  public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
+
+  public static void initializeDefaultValues(IPreferenceStore store) {
+    store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML, "<&#"); //$NON-NLS-1$
+    store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
+
+  }
+}
\ No newline at end of file