1 /**********************************************************************
2 Copyright (c) 2000, 2002 IBM Corp. and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Common Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/cpl-v10.html
9 IBM Corporation - Initial implementation
10 Klaus Hartlage - www.eclipseproject.de
11 **********************************************************************/
12 package net.sourceforge.phpeclipse;
17 * Predefined prference constants
19 public interface IPreferenceConstants {
21 * Preference key suffix for bold text style preference keys.
25 public static final String EDITOR_BOLD_SUFFIX= "_bold"; //$NON-NLS-1$
28 * Preference key suffix for italic text style preference keys.
32 public static final String EDITOR_ITALIC_SUFFIX= "_italic"; //$NON-NLS-1$
34 // public static final String LOCALHOST_PREF = "_localhost";
35 // public static final String DOCUMENTROOT_PREF = "_documentroot";
36 public static final String USE_EXTERNAL_BROWSER_PREF = "_use_external_browser";
37 // public static final String SHOW_EXTERNAL_PREVIEW_PREF = "_show_external_preview";
38 public static final String EXTERNAL_BROWSER_PREF = "_external_browser";
39 public static final String MYSQL_RUN_PREF = "_mysql_run_pref";
40 public static final String MYSQL_START_BACKGROUND = "_mysql_start_background";
41 public static final String MYSQL_PREF = "__mysql_start";
42 public static final String APACHE_RUN_PREF = "_apache_run_pref";
43 public static final String APACHE_START_BACKGROUND = "_apache_start_background";
44 public static final String APACHE_START_PREF = "__apache_start";
45 public static final String APACHE_STOP_BACKGROUND = "_apache_stop_background";
46 public static final String APACHE_STOP_PREF = "__apache_stop";
47 public static final String APACHE_RESTART_BACKGROUND = "_apache_restart_background";
48 public static final String APACHE_RESTART_PREF = "__apache_restart";
49 public static final String SHOW_OUTPUT_IN_CONSOLE = "_show_output_in_console";
50 public static final String PHP_RUN_PREF = "_php_run_pref";
51 public static final String EXTERNAL_PARSER_PREF = "_external_parser";
52 public static final String PHP_PARSER_DEFAULT = "_php_parser_default";
53 // public static final String PHP_INTERNAL_PARSER = "_php_internal_parser";
54 // public static final String PHP_EXTERNAL_PARSER = "_php_external_parser";
55 // public static final String PHP_PARSE_ON_SAVE = "_php_parse_on_save";
56 public static final String PHP_MULTILINE_COMMENT = "_php_multilineComment";
57 public static final String PHP_MULTILINE_COMMENT_BOLD = "_php_multilineComment_bold";
58 public static final String PHP_MULTILINE_COMMENT_ITALIC = "_php_multilineComment_italic";
59 public static final String PHP_MULTILINE_COMMENT_UNDERLINE = "_php_multilineComment_underline";
60 /** The color key for operators and brackets in PHP code
61 * (value <code>"__php_operator"</code>).
64 public static final String PHP_OPERATOR = "__php_operator"; //$NON-NLS-1$
67 * A named preference that holds the color used to render operators and brackets.
69 * Value is of type <code>String</code>. A RGB color value encoded as a string
70 * using class <code>PreferenceConverter</code>
73 * @see org.eclipse.jface.resource.StringConverter
74 * @see org.eclipse.jface.preference.PreferenceConverter
77 public final static String EDITOR_PHP_OPERATOR_COLOR= PHP_OPERATOR;
80 * A named preference that controls whether operators and brackets are rendered in bold.
82 * Value is of type <code>Boolean</code>.
87 public final static String EDITOR_PHP_OPERATOR_BOLD= PHP_OPERATOR + EDITOR_BOLD_SUFFIX;
90 * A named preference that controls whether operators and brackets are rendered in italic.
92 * Value is of type <code>Boolean</code>.
97 public final static String EDITOR_PHP_OPERATOR_ITALIC= PHP_OPERATOR + EDITOR_ITALIC_SUFFIX;
99 /** The color key for keyword 'return' in PHP code
100 * (value <code>"__php_keyword_return"</code>).
103 public static final String PHP_KEYWORD_RETURN= "__php_keyword_return"; //$NON-NLS-1$
105 * A named preference that holds the color used to render the 'return' keyword.
107 * Value is of type <code>String</code>. A RGB color value encoded as a string
108 * using class <code>PreferenceConverter</code>
111 * @see org.eclipse.jface.resource.StringConverter
112 * @see org.eclipse.jface.preference.PreferenceConverter
115 public final static String EDITOR_PHP_KEYWORD_RETURN_COLOR= PHP_KEYWORD_RETURN;
118 * A named preference that controls whether 'return' keyword is rendered in bold.
120 * Value is of type <code>Boolean</code>.
125 public final static String EDITOR_PHP_KEYWORD_RETURN_BOLD= PHP_KEYWORD_RETURN + EDITOR_BOLD_SUFFIX;
128 * A named preference that controls whether 'return' keyword is rendered in italic.
130 * Value is of type <code>Boolean</code>.
135 public final static String EDITOR_PHP_KEYWORD_RETURN_ITALIC= PHP_KEYWORD_RETURN + EDITOR_ITALIC_SUFFIX;
137 public static final String PHP_SINGLELINE_COMMENT = "_php_singlelineComment";
138 public static final String PHP_SINGLELINE_COMMENT_BOLD = "_php_singlelineComment_bold";//$NON-NLS-1$
139 public static final String PHP_SINGLELINE_COMMENT_ITALIC = "_php_singlelineComment_italic";//$NON-NLS-1$
140 public static final String PHP_SINGLELINE_COMMENT_UNDERLINE = "_php_singlelineComment_underline";//$NON-NLS-1$
141 public static final String PHP_TAG = "_php_tag";//$NON-NLS-1$
142 public static final String PHP_TAG_BOLD = "_php_tag_bold";//$NON-NLS-1$
143 public static final String PHP_TAG_ITALIC = "_php_tag_italic";//$NON-NLS-1$
144 public static final String PHP_TAG_UNDERLINE = "_php_tag_underline";//$NON-NLS-1$
145 public static final String PHP_KEYWORD = "_php_keyword";//$NON-NLS-1$
146 public static final String PHP_KEYWORD_BOLD = "_php_keyword_bold";//$NON-NLS-1$
147 public static final String PHP_KEYWORD_ITALIC = "_php_keyword_italic";//$NON-NLS-1$
148 public static final String PHP_KEYWORD_UNDERLINE = "_php_keyword_underline";//$NON-NLS-1$
149 public static final String PHP_VARIABLE = "_php_variable";//$NON-NLS-1$
150 public static final String PHP_VARIABLE_BOLD = "_php_variable_bold";//$NON-NLS-1$
151 public static final String PHP_VARIABLE_ITALIC = "_php_variable_italic";//$NON-NLS-1$
152 public static final String PHP_VARIABLE_UNDERLINE = "_php_variable_underline";//$NON-NLS-1$
153 public static final String PHP_TYPE = "_php_type";//$NON-NLS-1$
154 public static final String PHP_TYPE_BOLD = "_php_type_bold";//$NON-NLS-1$
155 public static final String PHP_TYPE_ITALIC = "_php_type_italic";//$NON-NLS-1$
156 public static final String PHP_TYPE_UNDERLINE = "_php_type_underline";//$NON-NLS-1$
157 public static final String PHP_CONSTANT = "_php_constant";//$NON-NLS-1$
158 public static final String PHP_CONSTANT_BOLD = "_php_constant_bold";//$NON-NLS-1$
159 public static final String PHP_CONSTANT_ITALIC = "_php_constant_italic";//$NON-NLS-1$
160 public static final String PHP_CONSTANT_UNDERLINE = "_php_constant_underline";//$NON-NLS-1$
161 public static final String PHP_FUNCTIONNAME = "_php_functionname";//$NON-NLS-1$
162 public static final String PHP_FUNCTIONNAME_BOLD = "_php_functionname_bold";//$NON-NLS-1$
163 public static final String PHP_FUNCTIONNAME_ITALIC = "_php_functionname_italic";//$NON-NLS-1$
164 public static final String PHP_FUNCTIONNAME_UNDERLINE = "_php_functionname_underline";//$NON-NLS-1$
165 public static final String PHP_STRING = "_php_string";//$NON-NLS-1$
166 public static final String PHP_STRING_BOLD = "_php_string_bold";
167 public static final String PHP_STRING_ITALIC = "_php_string_italic";
168 public static final String PHP_STRING_UNDERLINE = "_php_string_underline";
169 public static final String PHP_DEFAULT = "_php_default";
170 public static final String PHP_DEFAULT_BOLD = "_php_default_bold";
171 public static final String PHP_DEFAULT_ITALIC = "_php_default_italic";
172 public static final String PHP_DEFAULT_UNDERLINE = "_php_default_underline";
173 public static final String TASK_TAG= "_php_comment_task_tag"; //$NON-NLS-1$
174 public static final String TASK_TAG_BOLD = "_php_comment_task_tag_bold"; //$NON-NLS-1$
176 /** The color key for PHPDoc keywords (<code>@foo</code>) in PHPDoc comments. */
177 public static final String PHPDOC_KEYWORD = "_php_doc_keyword"; //$NON-NLS-1$
178 public static final String PHPDOC_KEYWORD_BOLD = "_php_doc_keyword_bold";
179 public static final String PHPDOC_KEYWORD_ITALIC = "_php_doc_keyword_italic";
180 public static final String PHPDOC_KEYWORD_UNDERLINE = "_php_doc_keyword_underline";
181 /** The color key for HTML tags (<code><foo></code>) in PHPDoc comments. */
182 public static final String PHPDOC_TAG = "_php_doc_tag"; //$NON-NLS-1$
183 public static final String PHPDOC_TAG_BOLD = "_php_doc_tag_bold";
184 public static final String PHPDOC_TAG_ITALIC = "_php_doc_tag_italic";
185 public static final String PHPDOC_TAG_UNDERLINE = "_php_doc_tag_underline";
186 /** The color key for PHPDoc links (<code>{foo}</code>) in PHPDoc comments. */
187 public static final String PHPDOC_LINK = "_php_doc_link"; //$NON-NLS-1$
188 public static final String PHPDOC_LINK_BOLD = "_php_doc_link_bold";
189 public static final String PHPDOC_LINK_ITALIC = "_php_doc_link_italic";
190 public static final String PHPDOC_LINK_UNDERLINE = "_php_doc_link_underline";
191 /** The color key for everthing in PHPDoc comments for which no other color is specified. */
192 public static final String PHPDOC_DEFAULT = "_php_doc_default"; //$NON-NLS-1$
193 public static final String PHPDOC_DEFAULT_BOLD = "_php_doc_default_bold";
194 public static final String PHPDOC_DEFAULT_ITALIC = "_php_doc_default_italic";
195 public static final String PHPDOC_DEFAULT_UNDERLINE = "_php_doc_default_underline";
197 // public static final String LINKED_POSITION_COLOR = "_linkedPositionColor";
198 // public static final String PHP_EDITOR_BACKGROUND = "_php_editor_background";
199 public static final String PHP_USERDEF_XMLFILE = "_userdef_xmlfile";
201 /** Preference key for showing the line number ruler */
202 // public final static String LINE_NUMBER_RULER = "_lineNumberRuler"; //$NON-NLS-1$
203 /** Preference key for the foreground color of the line numbers */
204 // public final static String LINE_NUMBER_COLOR = "_lineNumberColor"; //$NON-NLS-1$
206 // public final static String PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT = "_defaultBackgroundColor"; //$NON-NLS-1$
207 // public final static String PREFERENCE_COLOR_BACKGROUND = "backgroundColor"; //$NON-NLS-1$
209 /** Preference key for content assist proposal color */
210 public final static String PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
211 /** Preference key for content assist proposal color */
212 public final static String PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
213 public static final String EDITOR_EVALUTE_TEMPORARY_PROBLEMS = null;
214 public static final String EDITOR_CORRECTION_INDICATION = null;
216 public static final String PHP_OBFUSCATOR_DEFAULT = "_php_obfuscator_default";
217 public static final String PHP_BOOKMARK_DEFAULT = "_php_bookmark_default";
218 public static final String PHP_LOCALHOST_PREF = "_php_localhost";
219 public static final String PHP_DOCUMENTROOT_PREF = "_php_documentroot";
221 public static final String PHP_AUTO_PREVIEW_DEFAULT = "_auto_preview";
222 public static final String PHP_BRING_TO_TOP_PREVIEW_DEFAULT = "_bring_to_top_preview";
223 public static final String PHP_SHOW_HTML_FILES_LOCAL = "_show_html_files_local";