X-Git-Url: http://git.phpeclipse.com 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 index 0000000..6697534 --- /dev/null +++ b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/PreferenceConstants.java @@ -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. + *

+ * Value is of type Sring. All characters that trigger auto code assist in XML/HTML. + *

+ */ + 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. + *

+ * Value is of type Boolean. If true that are sorted in alphabetical + * order. If false that are unsorted. + *

+ */ + 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