1 11 package org.eclipse.ant.internal.ui.preferences; 12 13 import org.eclipse.jface.preference.IPreferenceStore; 14 import org.eclipse.jface.preference.PreferenceConverter; 15 import org.eclipse.swt.graphics.RGB; 16 17 20 public class AntEditorPreferenceConstants { 21 22 private AntEditorPreferenceConstants() { 23 } 24 25 31 public final static String CODEASSIST_AUTOACTIVATION= "content_assist_autoactivation"; 33 39 public final static String CODEASSIST_AUTOACTIVATION_DELAY= "content_assist_autoactivation_delay"; 41 49 public final static String CODEASSIST_AUTOINSERT= "content_assist_autoinsert"; 51 57 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS= "content_assist_autoactivation_triggers_java"; 59 67 public final static String CODEASSIST_USER_DEFINED_TASKS= "content_assist_userDefinedTasks"; 69 73 public final static String CODEASSIST_PROPOSALS_BACKGROUND= "org.eclipse.ant.ui.codeAssistProposalsBackgroundColor"; public final static String CODEASSIST_PROPOSALS_FOREGROUND= "org.eclipse.ant.ui.codeAssistProposalsForegroundColor"; 76 82 public static final String FORMATTER_TAB_SIZE= "formatter_tab_size"; 84 91 public static final String FORMATTER_TAB_CHAR= "formatter_tab_char"; 93 101 public static final String FORMATTER_ALIGN= "formatter_align"; 103 109 public static final String FORMATTER_MAX_LINE_LENGTH= "formatter_max_line_length"; 111 119 public static final String FORMATTER_WRAP_LONG= "formatter_wrap_long"; 121 125 public static final String TEMPLATES_USE_CODEFORMATTER= "templates_use_codeformatter"; 127 131 public static final String EDITOR_BOLD_SUFFIX= "_bold"; 133 136 public static final String EDITOR_ITALIC_SUFFIX= "_italic"; 138 141 public static final String PROBLEM= "problem"; 143 147 public static final String PROBLEM_CLASSPATH= PROBLEM + "_classpath"; 149 153 public static final String PROBLEM_PROPERTIES= PROBLEM + "_properties"; 155 159 public static final String PROBLEM_IMPORTS= PROBLEM + "_imports"; 161 165 public static final String PROBLEM_TASKS= PROBLEM + "_tasks"; 167 171 public static final String PROBLEM_SECURITY= PROBLEM + "_security"; 173 176 public static final String BUILDFILE_ERROR = "error"; public static final String BUILDFILE_WARNING = "warning"; public static final String BUILDFILE_IGNORE = "ignore"; 180 188 public static String BUILDFILE_IGNORE_ALL = "ignoreAll"; 190 198 public static String BUILDFILE_NAMES_TO_IGNORE = "ignoreNames"; 200 208 public static final String EDITOR_FOLDING_ENABLED= "editor_folding_enabled"; 210 218 public static final String EDITOR_FOLDING_COMMENTS= "editor_folding_comments"; 220 228 public static final String EDITOR_FOLDING_TARGETS= "editor_folding_targets"; 230 238 public static final String EDITOR_FOLDING_DTD= "editor_folding_dtd"; 240 248 public static final String EDITOR_FOLDING_DEFINING= "editor_folding_defining"; 250 257 public static final String EDITOR_SHOW_SEGMENTS= "editor_show_segments"; 259 266 public static final String EDITOR_MARK_OCCURRENCES= "editor_mark_occurrences"; 268 276 public static final String EDITOR_RECONCILE= "editor_reconcile"; 278 286 public static final String EDITOR_STICKY_OCCURRENCES= "stickyOccurrences"; 288 289 public static void initializeDefaultValues(IPreferenceStore store) { 290 291 store.setDefault(CODEASSIST_AUTOINSERT, true); 292 store.setDefault(CODEASSIST_USER_DEFINED_TASKS, true); 293 store.setDefault(CODEASSIST_AUTOACTIVATION, true); 294 store.setDefault(CODEASSIST_AUTOACTIVATION_DELAY, 500); 295 PreferenceConverter.setDefault(store, CODEASSIST_PROPOSALS_BACKGROUND, new RGB(254, 241, 233)); 296 PreferenceConverter.setDefault(store, CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0, 0, 0)); 297 store.setDefault(CODEASSIST_AUTOACTIVATION_TRIGGERS, "<${"); 299 store.setDefault(FORMATTER_TAB_CHAR, true); 300 store.setDefault(FORMATTER_TAB_SIZE, 4); 301 store.setDefault(FORMATTER_ALIGN, false); 302 store.setDefault(FORMATTER_MAX_LINE_LENGTH, 80); 303 store.setDefault(FORMATTER_WRAP_LONG, false); 304 305 store.setDefault(TEMPLATES_USE_CODEFORMATTER, true); 306 307 store.setDefault(PROBLEM_SECURITY, BUILDFILE_WARNING); 308 store.setDefault(PROBLEM_CLASSPATH, BUILDFILE_WARNING); 309 store.setDefault(PROBLEM_PROPERTIES, BUILDFILE_IGNORE); 310 store.setDefault(PROBLEM_IMPORTS, BUILDFILE_WARNING); 311 store.setDefault(PROBLEM_TASKS, BUILDFILE_IGNORE); 312 313 store.setDefault(EDITOR_FOLDING_ENABLED, true); 314 315 store.setDefault(EDITOR_SHOW_SEGMENTS, false); 316 317 store.setDefault(EDITOR_MARK_OCCURRENCES, false); 318 store.setDefault(EDITOR_STICKY_OCCURRENCES, true); 319 320 store.setDefault(BUILDFILE_IGNORE_ALL, false); 321 322 store.setDefault(EDITOR_RECONCILE, true); 323 } 324 } 325 | Popular Tags |