1 11 package org.eclipse.jdt.ui; 12 13 import java.util.Locale ; 14 15 import org.eclipse.core.runtime.preferences.DefaultScope; 16 import org.eclipse.core.runtime.preferences.InstanceScope; 17 18 import org.eclipse.core.resources.ProjectScope; 19 20 import org.eclipse.swt.SWT; 21 import org.eclipse.swt.graphics.RGB; 22 23 import org.eclipse.jface.action.Action; 24 import org.eclipse.jface.preference.IPreferenceStore; 25 import org.eclipse.jface.preference.PreferenceConverter; 26 import org.eclipse.jface.resource.ColorRegistry; 27 28 import org.eclipse.ui.PlatformUI; 29 import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants; 30 import org.eclipse.ui.texteditor.AbstractTextEditor; 31 32 import org.eclipse.jdt.core.IClasspathEntry; 33 import org.eclipse.jdt.core.IJavaProject; 34 import org.eclipse.jdt.core.JavaCore; 35 36 import org.eclipse.jdt.internal.corext.fix.CleanUpConstants; 37 38 import org.eclipse.jdt.ui.text.IJavaColorConstants; 39 40 import org.eclipse.jdt.internal.ui.IJavaThemeConstants; 41 import org.eclipse.jdt.internal.ui.JavaPlugin; 42 import org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings; 43 import org.eclipse.jdt.internal.ui.preferences.NewJavaProjectPreferencePage; 44 import org.eclipse.jdt.internal.ui.preferences.formatter.FormatterProfileManager; 45 import org.eclipse.jdt.internal.ui.text.java.ProposalSorterRegistry; 46 import org.eclipse.jdt.internal.ui.text.spelling.JavaSpellingEngine; 47 import org.eclipse.jdt.internal.ui.text.spelling.SpellCheckEngine; 48 import org.eclipse.jdt.internal.ui.text.spelling.SpellingEngine; 49 50 57 public class PreferenceConstants { 58 59 private PreferenceConstants() { 60 } 61 62 69 public static final String APPEARANCE_METHOD_RETURNTYPE= "org.eclipse.jdt.ui.methodreturntype"; 71 79 public static final String APPEARANCE_METHOD_TYPEPARAMETERS= "org.eclipse.jdt.ui.methodtypeparametesr"; 81 89 public static final String APPEARANCE_OVERRIDE_INDICATOR= "org.eclipse.jdt.ui.overrideindicator"; 91 100 public static final String EDITOR_QUICKASSIST_LIGHTBULB="org.eclipse.jdt.quickassist.lightbulb"; 102 103 104 111 public static final String APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW= "PackagesView.pkgNamePatternForPackagesView"; 113 121 public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES= "org.eclipse.jdt.ui.compresspackagenames"; 123 132 public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER= "org.eclipse.jdt.ui.flatPackagesInPackageExplorer"; 134 154 public static final String APPEARANCE_MEMBER_SORT_ORDER= "outlinesortoption"; 156 172 public static final String APPEARANCE_VISIBILITY_SORT_ORDER= "org.eclipse.jdt.ui.visibility.order"; 174 182 public static final String APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER= "org.eclipse.jdt.ui.enable.visibility.order"; 184 191 public static final String APPEARANCE_CATEGORY= "org.eclipse.jdt.ui.category"; 193 199 public final static String APPEARANCE_JAVADOC_FONT= "org.eclipse.jdt.ui.javadocfont"; 201 209 public static final String CODEGEN_USE_GETTERSETTER_PREFIX= "org.eclipse.jdt.ui.gettersetter.prefix.enable"; 211 221 public static final String CODEGEN_GETTERSETTER_PREFIX= "org.eclipse.jdt.ui.gettersetter.prefix.list"; 223 231 public static final String CODEGEN_USE_GETTERSETTER_SUFFIX= "org.eclipse.jdt.ui.gettersetter.suffix.enable"; 233 242 public static final String CODEGEN_GETTERSETTER_SUFFIX= "org.eclipse.jdt.ui.gettersetter.suffix.list"; 244 252 public static final String CODEGEN_KEYWORD_THIS= "org.eclipse.jdt.ui.keywordthis"; 254 262 public static final String CODEGEN_IS_FOR_GETTERS= "org.eclipse.jdt.ui.gettersetter.use.is"; 264 265 273 public static final String CODEGEN_EXCEPTION_VAR_NAME= "org.eclipse.jdt.ui.exception.name"; 275 283 public static final String CODEGEN_ADD_COMMENTS= "org.eclipse.jdt.ui.javadoc"; 285 293 public static final String CODEGEN__JAVADOC_STUBS= CODEGEN_ADD_COMMENTS; 294 295 304 public static final String CODEGEN__NON_JAVADOC_COMMENTS= "org.eclipse.jdt.ui.seecomments"; 306 314 public static final String CODEGEN__FILE_COMMENTS= "org.eclipse.jdt.ui.filecomments"; 316 323 public static final String CODEGEN_USE_OVERRIDE_ANNOTATION= "org.eclipse.jdt.ui.overrideannotation"; 325 329 public static final String TYPEFILTER_ENABLED= "org.eclipse.jdt.ui.typefilter.enabled"; 331 335 public static final String TYPEFILTER_DISABLED= "org.eclipse.jdt.ui.typefilter.disabled"; 337 338 346 public static final String ORGIMPORTS_IMPORTORDER= "org.eclipse.jdt.ui.importorder"; 348 354 public static final String ORGIMPORTS_ONDEMANDTHRESHOLD= "org.eclipse.jdt.ui.ondemandthreshold"; 356 363 public static final String ORGIMPORTS_STATIC_ONDEMANDTHRESHOLD= "org.eclipse.jdt.ui.staticondemandthreshold"; 365 372 public static final String ORGIMPORTS_IGNORELOWERCASE= "org.eclipse.jdt.ui.ignorelowercasenames"; 374 380 public static final String SHOW_CU_CHILDREN= "org.eclipse.jdt.ui.packages.cuchildren"; 382 389 public static final String LINK_PACKAGES_TO_EDITOR= "org.eclipse.jdt.ui.packages.linktoeditor"; 391 398 public static final String LINK_TYPEHIERARCHY_TO_EDITOR= "org.eclipse.jdt.ui.packages.linktypehierarchytoeditor"; 400 408 public static final String LINK_BROWSING_PROJECTS_TO_EDITOR= "org.eclipse.jdt.ui.browsing.projectstoeditor"; 410 418 public static final String LINK_BROWSING_PACKAGES_TO_EDITOR= "org.eclipse.jdt.ui.browsing.packagestoeditor"; 420 421 422 430 public static final String LINK_BROWSING_TYPES_TO_EDITOR= "org.eclipse.jdt.ui.browsing.typestoeditor"; 432 440 public static final String LINK_BROWSING_MEMBERS_TO_EDITOR= "org.eclipse.jdt.ui.browsing.memberstoeditor"; 448 public static final String SRCBIN_FOLDERS_IN_NEWPROJ= "org.eclipse.jdt.ui.wizards.srcBinFoldersInNewProjects"; 450 459 public static final String SRCBIN_SRCNAME= "org.eclipse.jdt.ui.wizards.srcBinFoldersSrcName"; 461 470 public static final String SRCBIN_BINNAME= "org.eclipse.jdt.ui.wizards.srcBinFoldersBinName"; 472 490 public static final String NEWPROJECT_JRELIBRARY_LIST= "org.eclipse.jdt.ui.wizards.jre.list"; 492 500 public static final String NEWPROJECT_JRELIBRARY_INDEX= "org.eclipse.jdt.ui.wizards.jre.index"; 502 514 public static final String OPEN_TYPE_HIERARCHY= "org.eclipse.jdt.ui.openTypeHierarchy"; 516 521 public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE= "perspective"; 523 528 public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART= "viewPart"; 530 541 public static final String DOUBLE_CLICK= "packageview.doubleclick"; 543 548 public static final String DOUBLE_CLICK_GOES_INTO= "packageview.gointo"; 550 555 public static final String DOUBLE_CLICK_EXPANDS= "packageview.doubleclick.expands"; 557 570 public static final String UPDATE_JAVA_VIEWS= "JavaUI.update"; 572 578 public static final String UPDATE_ON_SAVE= "JavaUI.update.onSave"; 580 586 public static final String UPDATE_WHILE_EDITING= "JavaUI.update.whileEditing"; 588 594 public static final String JAVADOC_COMMAND= "command"; 596 603 public static final String EDITOR_SHOW_TEXT_HOVER_AFFORDANCE= "PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE"; 605 611 public static final String EDITOR_TEXT_HOVER_MODIFIERS= "hoverModifiers"; 613 622 public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS= "hoverModifierMasks"; 624 630 public static final String ID_BESTMATCH_HOVER= "org.eclipse.jdt.ui.BestMatchHover"; 632 638 public static final String ID_SOURCE_HOVER= "org.eclipse.jdt.ui.JavaSourceHover"; 640 646 public static final String ID_JAVADOC_HOVER= "org.eclipse.jdt.ui.JavadocHover"; 648 655 public static final String ID_PROBLEM_HOVER= "org.eclipse.jdt.ui.ProblemHover"; 657 663 public final static String EDITOR_MATCHING_BRACKETS= "matchingBrackets"; 665 675 public final static String EDITOR_MATCHING_BRACKETS_COLOR= "matchingBracketsColor"; 677 684 public final static String EDITOR_CURRENT_LINE= "currentLine"; 686 697 public final static String EDITOR_CURRENT_LINE_COLOR= "currentLineColor"; 699 706 public final static String EDITOR_PRINT_MARGIN= "printMargin"; 708 719 public final static String EDITOR_PRINT_MARGIN_COLOR= "printMarginColor"; 721 725 public final static String EDITOR_PRINT_MARGIN_COLUMN= "printMarginColumn"; 727 738 public final static String EDITOR_FIND_SCOPE_COLOR= AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE; 739 740 749 public final static String EDITOR_SPACES_FOR_TABS= "spacesForTabs"; 751 759 public final static String EDITOR_TAB_WIDTH= "org.eclipse.jdt.ui.editor.tab.width"; 761 769 public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE= "JavaEditor.SyncOutlineOnCursorMove"; 771 777 public final static String EDITOR_CORRECTION_INDICATION= "JavaEditor.ShowTemporaryProblem"; 779 787 public final static String EDITOR_PROBLEM_INDICATION= "problemIndication"; 789 801 public final static String EDITOR_PROBLEM_INDICATION_COLOR= "problemIndicationColor"; 803 811 public final static String EDITOR_WARNING_INDICATION= "warningIndication"; 813 826 public final static String EDITOR_WARNING_INDICATION_COLOR= "warningIndicationColor"; 828 836 public final static String EDITOR_TASK_INDICATION= "taskIndication"; 838 851 public final static String EDITOR_TASK_INDICATION_COLOR= "taskIndicationColor"; 853 862 public final static String EDITOR_BOOKMARK_INDICATION= "bookmarkIndication"; 864 877 public final static String EDITOR_BOOKMARK_INDICATION_COLOR= "bookmarkIndicationColor"; 879 888 public final static String EDITOR_SEARCH_RESULT_INDICATION= "searchResultIndication"; 890 903 public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR= "searchResultIndicationColor"; 905 914 public final static String EDITOR_UNKNOWN_INDICATION= "othersIndication"; 916 931 public final static String EDITOR_UNKNOWN_INDICATION_COLOR= "othersIndicationColor"; 933 942 public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER= "errorIndicationInOverviewRuler"; 944 953 public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER= "warningIndicationInOverviewRuler"; 955 964 public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER= "taskIndicationInOverviewRuler"; 966 975 public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER= "bookmarkIndicationInOverviewRuler"; 977 986 public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER= "searchResultIndicationInOverviewRuler"; 988 997 public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER= "othersIndicationInOverviewRuler"; 999 1007 public final static String EDITOR_CLOSE_STRINGS= "closeStrings"; 1009 1017 public final static String EDITOR_WRAP_STRINGS= "wrapStrings"; 1019 1027 public final static String EDITOR_ESCAPE_STRINGS= "escapeStrings"; 1029 1037 public final static String EDITOR_CLOSE_BRACKETS= "closeBrackets"; 1039 1047 public final static String EDITOR_CLOSE_BRACES= "closeBraces"; 1049 1057 public final static String EDITOR_CLOSE_JAVADOCS= "closeJavaDocs"; 1059 1067 public final static String EDITOR_ADD_JAVADOC_TAGS= "addJavaDocTags"; 1069 1077 public final static String EDITOR_FORMAT_JAVADOCS= "autoFormatJavaDocs"; 1079 1087 public final static String EDITOR_SMART_PASTE= "smartPaste"; 1089 1096 public final static String EDITOR_IMPORTS_ON_PASTE= "importsOnPaste"; 1098 1107 public final static String EDITOR_SMART_HOME_END= AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END; 1108 1109 1117 public final static String EDITOR_SUB_WORD_NAVIGATION= "subWordNavigation"; 1119 1125 public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS= "handleTemporaryProblems"; 1127 1134 public final static String EDITOR_OVERVIEW_RULER= "overviewRuler"; 1136 1143 public final static String EDITOR_LINE_NUMBER_RULER= "lineNumberRuler"; 1145 1157 public final static String EDITOR_LINE_NUMBER_RULER_COLOR= "lineNumberColor"; 1159 1171 public final static String EDITOR_LINKED_POSITION_COLOR= "linkedPositionColor"; 1173 1185 public final static String EDITOR_FOREGROUND_COLOR= AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND; 1186 1187 1195 public final static String EDITOR_FOREGROUND_DEFAULT_COLOR= AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT; 1196 1197 1209 public final static String EDITOR_BACKGROUND_COLOR= AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND; 1210 1211 1219 public final static String EDITOR_BACKGROUND_DEFAULT_COLOR= AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT; 1220 1221 1226 public static final String EDITOR_BOLD_SUFFIX= "_bold"; 1228 1233 public static final String EDITOR_ITALIC_SUFFIX= "_italic"; 1235 1240 public static final String EDITOR_STRIKETHROUGH_SUFFIX= "_strikethrough"; 1242 1247 public static final String EDITOR_UNDERLINE_SUFFIX= "_underline"; 1249 1259 public final static String EDITOR_MULTI_LINE_COMMENT_COLOR= IJavaColorConstants.JAVA_MULTI_LINE_COMMENT; 1260 1261 1267 public final static String EDITOR_TEXT_FONT= "org.eclipse.jdt.ui.editors.textfont"; 1269 1276 public final static String EDITOR_MULTI_LINE_COMMENT_BOLD= IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + EDITOR_BOLD_SUFFIX; 1277 1278 1287 public final static String EDITOR_MULTI_LINE_COMMENT_ITALIC= IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + EDITOR_ITALIC_SUFFIX; 1288 1289 1298 public final static String EDITOR_MULTI_LINE_COMMENT_STRIKETHROUGH= IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + EDITOR_STRIKETHROUGH_SUFFIX; 1299 1300 1309 public final static String EDITOR_MULTI_LINE_COMMENT_UNDERLINE= IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + EDITOR_UNDERLINE_SUFFIX; 1310 1311 1321 public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR= IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT; 1322 1323 1330 public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD= IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + EDITOR_BOLD_SUFFIX; 1331 1332 1341 public final static String EDITOR_SINGLE_LINE_COMMENT_ITALIC= IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + EDITOR_ITALIC_SUFFIX; 1342 1343 1352 public final static String EDITOR_SINGLE_LINE_COMMENT_STRIKETHROUGH= IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + EDITOR_STRIKETHROUGH_SUFFIX; 1353 1354 1363 public final static String EDITOR_SINGLE_LINE_COMMENT_UNDERLINE= IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + EDITOR_UNDERLINE_SUFFIX; 1364 1365 1375 public final static String EDITOR_JAVA_KEYWORD_COLOR= IJavaColorConstants.JAVA_KEYWORD; 1376 1377 1383 public final static String EDITOR_JAVA_KEYWORD_BOLD= IJavaColorConstants.JAVA_KEYWORD + EDITOR_BOLD_SUFFIX; 1384 1385 1393 public final static String EDITOR_JAVA_KEYWORD_ITALIC= IJavaColorConstants.JAVA_KEYWORD + EDITOR_ITALIC_SUFFIX; 1394 1395 1403 public final static String EDITOR_JAVA_KEYWORD_STRIKETHROUGH= IJavaColorConstants.JAVA_KEYWORD + EDITOR_STRIKETHROUGH_SUFFIX; 1404 1405 1413 public final static String EDITOR_JAVA_KEYWORD_UNDERLINE= IJavaColorConstants.JAVA_KEYWORD + EDITOR_UNDERLINE_SUFFIX; 1414 1415 1425 public final static String EDITOR_STRING_COLOR= IJavaColorConstants.JAVA_STRING; 1426 1427 1433 public final static String EDITOR_STRING_BOLD= IJavaColorConstants.JAVA_STRING + EDITOR_BOLD_SUFFIX; 1434 1435 1443 public final static String EDITOR_STRING_ITALIC= IJavaColorConstants.JAVA_STRING + EDITOR_ITALIC_SUFFIX; 1444 1445 1453 public final static String EDITOR_STRING_STRIKETHROUGH= IJavaColorConstants.JAVA_STRING + EDITOR_STRIKETHROUGH_SUFFIX; 1454 1455 1463 public final static String EDITOR_STRING_UNDERLINE= IJavaColorConstants.JAVA_STRING + EDITOR_UNDERLINE_SUFFIX; 1464 1465 1477 public final static String EDITOR_JAVA_METHOD_NAME_COLOR= IJavaColorConstants.JAVA_METHOD_NAME; 1478 1479 1488 public final static String EDITOR_JAVA_METHOD_NAME_BOLD= IJavaColorConstants.JAVA_METHOD_NAME + EDITOR_BOLD_SUFFIX; 1489 1490 1499 public final static String EDITOR_JAVA_METHOD_NAME_ITALIC= IJavaColorConstants.JAVA_METHOD_NAME + EDITOR_ITALIC_SUFFIX; 1500 1501 1512 public final static String EDITOR_JAVA_KEYWORD_RETURN_COLOR= IJavaColorConstants.JAVA_KEYWORD_RETURN; 1513 1514 1522 public final static String EDITOR_JAVA_KEYWORD_RETURN_BOLD= IJavaColorConstants.JAVA_KEYWORD_RETURN + EDITOR_BOLD_SUFFIX; 1523 1524 1532 public final static String EDITOR_JAVA_KEYWORD_RETURN_ITALIC= IJavaColorConstants.JAVA_KEYWORD_RETURN + EDITOR_ITALIC_SUFFIX; 1533 1534 1542 public final static String EDITOR_JAVA_KEYWORD_RETURN_STRIKETHROUGH= IJavaColorConstants.JAVA_KEYWORD_RETURN + EDITOR_STRIKETHROUGH_SUFFIX; 1543 1544 1552 public final static String EDITOR_JAVA_KEYWORD_RETURN_UNDERLINE= IJavaColorConstants.JAVA_KEYWORD_RETURN + EDITOR_UNDERLINE_SUFFIX; 1553 1554 1565 public final static String EDITOR_JAVA_OPERATOR_COLOR= IJavaColorConstants.JAVA_OPERATOR; 1566 1567 1575 public final static String EDITOR_JAVA_OPERATOR_BOLD= IJavaColorConstants.JAVA_OPERATOR + EDITOR_BOLD_SUFFIX; 1576 1577 1585 public final static String EDITOR_JAVA_OPERATOR_ITALIC= IJavaColorConstants.JAVA_OPERATOR + EDITOR_ITALIC_SUFFIX; 1586 1587 1595 public final static String EDITOR_JAVA_OPERATOR_STRIKETHROUGH= IJavaColorConstants.JAVA_OPERATOR + EDITOR_STRIKETHROUGH_SUFFIX; 1596 1597 1605 public final static String EDITOR_JAVA_OPERATOR_UNDERLINE= IJavaColorConstants.JAVA_OPERATOR + EDITOR_UNDERLINE_SUFFIX; 1606 1607 1618 public final static String EDITOR_JAVA_BRACKET_COLOR= IJavaColorConstants.JAVA_BRACKET; 1619 1620 1628 public final static String EDITOR_JAVA_BRACKET_BOLD= IJavaColorConstants.JAVA_BRACKET + EDITOR_BOLD_SUFFIX; 1629 1630 1638 public final static String EDITOR_JAVA_BRACKET_ITALIC= IJavaColorConstants.JAVA_BRACKET + EDITOR_ITALIC_SUFFIX; 1639 1640 1648 public final static String EDITOR_JAVA_BRACKET_STRIKETHROUGH= IJavaColorConstants.JAVA_BRACKET + EDITOR_STRIKETHROUGH_SUFFIX; 1649 1650 1658 public final static String EDITOR_JAVA_BRACKET_UNDERLINE= IJavaColorConstants.JAVA_BRACKET + EDITOR_UNDERLINE_SUFFIX; 1659 1660 1672 public final static String EDITOR_JAVA_ANNOTATION_COLOR= IJavaColorConstants.JAVA_ANNOTATION; 1673 1674 1683 public final static String EDITOR_JAVA_ANNOTATION_BOLD= IJavaColorConstants.JAVA_ANNOTATION + EDITOR_BOLD_SUFFIX; 1684 1685 1694 public final static String EDITOR_JAVA_ANNOTATION_ITALIC= IJavaColorConstants.JAVA_ANNOTATION + EDITOR_ITALIC_SUFFIX; 1695 1696 1705 public final static String EDITOR_JAVA_ANNOTATION_STRIKETHROUGH= IJavaColorConstants.JAVA_ANNOTATION + EDITOR_STRIKETHROUGH_SUFFIX; 1706 1707 1716 public final static String EDITOR_JAVA_ANNOTATION_UNDERLINE= IJavaColorConstants.JAVA_ANNOTATION + EDITOR_UNDERLINE_SUFFIX; 1717 1718 1728 public final static String EDITOR_JAVA_DEFAULT_COLOR= IJavaColorConstants.JAVA_DEFAULT; 1729 1730 1736 public final static String EDITOR_JAVA_DEFAULT_BOLD= IJavaColorConstants.JAVA_DEFAULT + EDITOR_BOLD_SUFFIX; 1737 1738 1746 public final static String EDITOR_JAVA_DEFAULT_ITALIC= IJavaColorConstants.JAVA_DEFAULT + EDITOR_ITALIC_SUFFIX; 1747 1755 public final static String EDITOR_JAVA_DEFAULT_STRIKETHROUGH= IJavaColorConstants.JAVA_DEFAULT + EDITOR_STRIKETHROUGH_SUFFIX; 1756 1757 1765 public final static String EDITOR_JAVA_DEFAULT_UNDERLINE= IJavaColorConstants.JAVA_DEFAULT + EDITOR_UNDERLINE_SUFFIX; 1766 1767 1778 public final static String EDITOR_TASK_TAG_COLOR= IJavaColorConstants.TASK_TAG; 1779 1780 1787 public final static String EDITOR_TASK_TAG_BOLD= IJavaColorConstants.TASK_TAG + EDITOR_BOLD_SUFFIX; 1788 1789 1797 public final static String EDITOR_TASK_TAG_ITALIC= IJavaColorConstants.TASK_TAG + EDITOR_ITALIC_SUFFIX; 1798 1806 public final static String EDITOR_TASK_TAG_STRIKETHROUGH= IJavaColorConstants.TASK_TAG + EDITOR_STRIKETHROUGH_SUFFIX; 1807 1808 1816 public final static String EDITOR_TASK_TAG_UNDERLINE= IJavaColorConstants.TASK_TAG + EDITOR_UNDERLINE_SUFFIX; 1817 1818 1828 public final static String EDITOR_JAVADOC_KEYWORD_COLOR= IJavaColorConstants.JAVADOC_KEYWORD; 1829 1830 1836 public final static String EDITOR_JAVADOC_KEYWORD_BOLD= IJavaColorConstants.JAVADOC_KEYWORD + EDITOR_BOLD_SUFFIX; 1837 1838 1846 public final static String EDITOR_JAVADOC_KEYWORD_ITALIC= IJavaColorConstants.JAVADOC_KEYWORD + EDITOR_ITALIC_SUFFIX; 1847 1848 1857 public final static String EDITOR_JAVADOC_KEYWORD_STRIKETHROUGH= IJavaColorConstants.JAVADOC_KEYWORD + EDITOR_STRIKETHROUGH_SUFFIX; 1858 1859 1867 public final static String EDITOR_JAVADOC_KEYWORD_UNDERLINE= IJavaColorConstants.JAVADOC_KEYWORD + EDITOR_UNDERLINE_SUFFIX; 1868 1869 1879 public final static String EDITOR_JAVADOC_TAG_COLOR= IJavaColorConstants.JAVADOC_TAG; 1880 1881 1887 public final static String EDITOR_JAVADOC_TAG_BOLD= IJavaColorConstants.JAVADOC_TAG + EDITOR_BOLD_SUFFIX; 1888 1889 1897 public final static String EDITOR_JAVADOC_TAG_ITALIC= IJavaColorConstants.JAVADOC_TAG + EDITOR_ITALIC_SUFFIX; 1898 1899 1907 public final static String EDITOR_JAVADOC_TAG_STRIKETHROUGH= IJavaColorConstants.JAVADOC_TAG + EDITOR_STRIKETHROUGH_SUFFIX; 1908 1909 1917 public final static String EDITOR_JAVADOC_TAG_UNDERLINE= IJavaColorConstants.JAVADOC_TAG + EDITOR_UNDERLINE_SUFFIX; 1918 1919 1929 public final static String EDITOR_JAVADOC_LINKS_COLOR= IJavaColorConstants.JAVADOC_LINK; 1930 1931 1937 public final static String EDITOR_JAVADOC_LINKS_BOLD= IJavaColorConstants.JAVADOC_LINK + EDITOR_BOLD_SUFFIX; 1938 1939 1947 public final static String EDITOR_JAVADOC_LINKS_ITALIC= IJavaColorConstants.JAVADOC_LINK + EDITOR_ITALIC_SUFFIX; 1948 1949 1957 public final static String EDITOR_JAVADOC_LINKS_STRIKETHROUGH= IJavaColorConstants.JAVADOC_LINK + EDITOR_STRIKETHROUGH_SUFFIX; 1958 1959 1967 public final static String EDITOR_JAVADOC_LINKS_UNDERLINE= IJavaColorConstants.JAVADOC_LINK + EDITOR_UNDERLINE_SUFFIX; 1968 1969 1979 public final static String EDITOR_JAVADOC_DEFAULT_COLOR= IJavaColorConstants.JAVADOC_DEFAULT; 1980 1981 1987 public final static String EDITOR_JAVADOC_DEFAULT_BOLD= IJavaColorConstants.JAVADOC_DEFAULT + EDITOR_BOLD_SUFFIX; 1988 1989 1997 public final static String EDITOR_JAVADOC_DEFAULT_ITALIC= IJavaColorConstants.JAVADOC_DEFAULT + EDITOR_ITALIC_SUFFIX; 1998 2006 public final static String EDITOR_JAVADOC_DEFAULT_STRIKETHROUGH= IJavaColorConstants.JAVADOC_DEFAULT + EDITOR_STRIKETHROUGH_SUFFIX; 2007 2008 2016 public final static String EDITOR_JAVADOC_DEFAULT_UNDERLINE= IJavaColorConstants.JAVADOC_DEFAULT + EDITOR_UNDERLINE_SUFFIX; 2017 2018 2030 public final static String EDITOR_LINK_COLOR= "linkColor"; 2032 2038 public static final String EDITOR_SHOW_HOVER= "org.eclipse.jdt.ui.editor.showHover"; 2040 2041 2055 public static final String EDITOR_NONE_HOVER= "noneHover"; 2057 2071 public static final String EDITOR_CTRL_HOVER= "ctrlHover"; 2073 2087 public static final String EDITOR_SHIFT_HOVER= "shiftHover"; 2089 2103 public static final String EDITOR_CTRL_ALT_HOVER= "ctrlAltHover"; 2105 2119 public static final String EDITOR_CTRL_ALT_SHIFT_HOVER= "ctrlAltShiftHover"; 2121 2135 public static final String EDITOR_CTRL_SHIFT_HOVER= "ctrlShiftHover"; 2137 2151 public static final String EDITOR_ALT_SHIFT_HOVER= "altShiftHover"; 2153 2159 public static final String EDITOR_NO_HOVER_CONFIGURED_ID= "noHoverConfiguredId"; 2161 2169 public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID= "defaultHoverConfiguredId"; 2171 2180 public static final String EDITOR_DEFAULT_HOVER= "defaultHover"; 2182 2188 public static final String EDITOR_SHOW_SEGMENTS= "org.eclipse.jdt.ui.editor.showSegments"; 2190 2199 public static final String EDITOR_BROWSER_LIKE_LINKS= "browserLikeLinks"; 2201 2210 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER= "browserLikeLinksKeyModifier"; 2212 2224 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK= "browserLikeLinksKeyModifierMask"; 2226 2234 public static final String EDITOR_MARK_OCCURRENCES= "markOccurrences"; 2236 2244 public static final String EDITOR_STICKY_OCCURRENCES= "stickyOccurrences"; 2246 2255 public static final String EDITOR_MARK_TYPE_OCCURRENCES= "markTypeOccurrences"; 2257 2266 public static final String EDITOR_MARK_METHOD_OCCURRENCES= "markMethodOccurrences"; 2276 public static final String EDITOR_MARK_FIELD_OCCURRENCES= "markFieldOccurrences"; 2286 public static final String EDITOR_MARK_CONSTANT_OCCURRENCES= "markConstantOccurrences"; 2288 2297 public static final String EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES= "markLocalVariableOccurrences"; 2299 2308 public static final String EDITOR_MARK_EXCEPTION_OCCURRENCES= "markExceptionOccurrences"; 2310 2319 public static final String EDITOR_MARK_METHOD_EXIT_POINTS= "markMethodExitPoints"; 2321 2330 public static final String EDITOR_MARK_BREAK_CONTINUE_TARGETS= "markBreakContinueTargets"; 2332 2341 public static final String EDITOR_MARK_IMPLEMENTORS= "markImplementors"; 2343 2348 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX="semanticHighlighting."; 2350 2360 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED=EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX + "enabled"; 2362 2373 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_COLOR_SUFFIX=".color"; 2375 2383 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_BOLD_SUFFIX=".bold"; 2385 2393 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_ITALIC_SUFFIX=".italic"; 2395 2403 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_STRIKETHROUGH_SUFFIX=".strikethrough"; 2405 2413 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_UNDERLINE_SUFFIX=".underline"; 2415 2423 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED_SUFFIX=".enabled"; 2425 2434 public static final String EDITOR_DISABLE_OVERWRITE_MODE= "disable_overwrite_mode"; 2436 2444 public static final String EDITOR_SMART_SEMICOLON= "smart_semicolon"; 2446 2453 public static final String EDITOR_SMART_BACKSPACE= "smart_backspace"; 2455 2463 public static final String EDITOR_SMART_OPENING_BRACE= "smart_opening_brace"; 2465 2472 public static final String EDITOR_SMART_TAB= "smart_tab"; 2474 2485 public final static String SPELLING_CHECK_SPELLING= "spelling_check_spelling"; 2487 2496 public final static String SPELLING_IGNORE_DIGITS= "spelling_ignore_digits"; 2498 2507 public final static String SPELLING_IGNORE_MIXED= "spelling_ignore_mixed"; 2509 2518 public final static String SPELLING_IGNORE_SENTENCE= "spelling_ignore_sentence"; 2520 2529 public final static String SPELLING_IGNORE_UPPER= "spelling_ignore_upper"; 2531 2540 public final static String SPELLING_IGNORE_URLS= "spelling_ignore_urls"; 2542 2551 public final static String SPELLING_IGNORE_SINGLE_LETTERS= "spelling_ignore_single_letters"; 2553 2562 public final static String SPELLING_IGNORE_AMPERSAND_IN_PROPERTIES= "spelling_ignore_ampersand_in_properties"; 2564 2573 public final static String SPELLING_IGNORE_NON_LETTERS= "spelling_ignore_non_letters"; 2575 2583 public final static String SPELLING_LOCALE= "spelling_locale"; 2585 2594 public final static String SPELLING_PROPOSAL_THRESHOLD= "spelling_proposal_threshold"; 2596 2604 public final static String SPELLING_USER_DICTIONARY= "spelling_user_dictionary"; 2606 2614 public final static String SPELLING_USER_DICTIONARY_ENCODING= "spelling_user_dictionary_encoding"; 2616 2627 public final static String SPELLING_ENABLE_CONTENTASSIST= "spelling_enable_contentassist"; 2629 2639 public final static String FORMATTER_COMMENT_FORMATSOURCE= "comment_format_source_code"; 2641 2651 public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION= "comment_indent_parameter_description"; 2653 2663 public final static String FORMATTER_COMMENT_FORMATHEADER= "comment_format_header"; 2665 2675 public final static String FORMATTER_COMMENT_INDENTROOTTAGS= "comment_indent_root_tags"; 2677 2687 public final static String FORMATTER_COMMENT_FORMAT= "comment_format_comments"; 2689 2699 public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER= "comment_new_line_for_parameter"; 2701 2711 public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS= "comment_separate_root_tags"; 2713 2722 public final static String FORMATTER_COMMENT_CLEARBLANKLINES= "comment_clear_blank_lines"; 2724 2733 public final static String FORMATTER_COMMENT_LINELENGTH= "comment_line_length"; 2735 2744 public final static String FORMATTER_COMMENT_FORMATHTML= "comment_format_html"; 2746 2752 public final static String CODEASSIST_AUTOACTIVATION= "content_assist_autoactivation"; 2754 2760 public final static String CODEASSIST_AUTOACTIVATION_DELAY= "content_assist_autoactivation_delay"; 2762 2769 public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS= "content_assist_show_visible_proposals"; 2771 2779 public final static String CODEASSIST_AUTOINSERT= "content_assist_autoinsert"; 2781 2789 public final static String CODEASSIST_ADDIMPORT= "content_assist_add_import"; 2791 2799 public final static String CODEASSIST_INSERT_COMPLETION= "content_assist_insert_completion"; 2801 2807 public final static String CODEASSIST_CASE_SENSITIVITY= "content_assist_case_sensitivity"; 2809 2817 public final static String CODEASSIST_ORDER_PROPOSALS= "content_assist_order_proposals"; 2819 2826 public final static String CODEASSIST_FILL_ARGUMENT_NAMES= "content_assist_fill_method_arguments"; 2828 2836 public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS= "content_assist_guess_method_arguments"; 2838 2844 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA= "content_assist_autoactivation_triggers_java"; 2846 2852 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC= "content_assist_autoactivation_triggers_javadoc"; 2854 2864 public final static String CODEASSIST_PROPOSALS_BACKGROUND= "content_assist_proposals_background"; 2866 2876 public final static String CODEASSIST_PROPOSALS_FOREGROUND= "content_assist_proposals_foreground"; 2878 2888 public final static String CODEASSIST_PARAMETERS_BACKGROUND= "content_assist_parameters_background"; 2890 2900 public final static String CODEASSIST_PARAMETERS_FOREGROUND= "content_assist_parameters_foreground"; 2902 2914 public final static String CODEASSIST_REPLACEMENT_BACKGROUND= "content_assist_completion_replacement_background"; 2916 2928 public final static String CODEASSIST_REPLACEMENT_FOREGROUND= "content_assist_completion_replacement_foreground"; 2930 2940 public final static String CODEASSIST_FAVORITE_STATIC_MEMBERS= "content_assist_favorite_static_members"; 2942 2943 2962 public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD= "Refactoring.ErrorPage.severityThreshold"; 2964 2970 public static final String REFACTOR_FATAL_SEVERITY= "4"; 2972 2978 public static final String REFACTOR_ERROR_SEVERITY= "3"; 2980 2986 public static final String REFACTOR_WARNING_SEVERITY= "2"; 2988 2994 public static final String REFACTOR_INFO_SEVERITY= "1"; 2996 3002 public static final String REFACTOR_OK_SEVERITY= "0"; 3004 3011 public static final String REFACTOR_SAVE_ALL_EDITORS= "Refactoring.savealleditors"; 3013 3024 public static final String REFACTOR_LIGHTWEIGHT= "Refactor.lightweight"; 3026 3033 public static final String SEARCH_USE_REDUCED_MENU= "Search.usereducemenu"; 3035 3042 public static final String BROWSING_LINK_VIEW_TO_EDITOR= "org.eclipse.jdt.ui.browsing.linktoeditor"; 3044 3051 public static final String BROWSING_STACK_VERTICALLY= "org.eclipse.jdt.ui.browsing.stackVertically"; 3053 3054 3062 public static final String TEMPLATES_USE_CODEFORMATTER= "org.eclipse.jdt.ui.template.format"; 3064 3072 public static final String FORMATTER_PROFILE= "formatter_profile"; 3074 3083 public static final String EDITOR_ANNOTATION_ROLL_OVER= "editor_annotation_roll_over"; 3085 3094 public final static String CODEASSIST_PREFIX_COMPLETION= "content_assist_prefix_completion"; 3096 3105 public static final String CODEASSIST_EXCLUDED_CATEGORIES= "content_assist_disabled_computers"; 3107 3115 public static final String CODEASSIST_CATEGORY_ORDER= "content_assist_category_order"; 3117 3125 public static final String EDITOR_FOLDING_ENABLED= "editor_folding_enabled"; 3127 3135 public static final String EDITOR_FOLDING_PROVIDER= "editor_folding_provider"; 3137 3145 public static final String EDITOR_FOLDING_JAVADOC= "editor_folding_default_javadoc"; 3147 3155 public static final String EDITOR_FOLDING_INNERTYPES= "editor_folding_default_innertypes"; 3157 3165 public static final String EDITOR_FOLDING_METHODS= "editor_folding_default_methods"; 3167 3175 public static final String EDITOR_FOLDING_IMPORTS= "editor_folding_default_imports"; 3177 3185 public static final String EDITOR_FOLDING_HEADERS= "editor_folding_default_headers"; 3187 3188 3190 3196 public static final String PROPERTIES_FILE_EDITOR_TEXT_FONT= "org.eclipse.jdt.ui.PropertiesFileEditor.textfont"; 3198 3209 public static final String PROPERTIES_FILE_COLORING_KEY= IJavaColorConstants.PROPERTIES_FILE_COLORING_KEY; 3210 3211 3219 public static final String PROPERTIES_FILE_COLORING_KEY_BOLD= PROPERTIES_FILE_COLORING_KEY + EDITOR_BOLD_SUFFIX; 3220 3221 3229 public static final String PROPERTIES_FILE_COLORING_KEY_ITALIC= PROPERTIES_FILE_COLORING_KEY + EDITOR_ITALIC_SUFFIX; 3230 3231 3239 public static final String PROPERTIES_FILE_COLORING_KEY_STRIKETHROUGH= PROPERTIES_FILE_COLORING_KEY + EDITOR_STRIKETHROUGH_SUFFIX; 3240 3241 3249 public static final String PROPERTIES_FILE_COLORING_KEY_UNDERLINE= PROPERTIES_FILE_COLORING_KEY + EDITOR_UNDERLINE_SUFFIX; 3250 3251 3262 public static final String PROPERTIES_FILE_COLORING_COMMENT= IJavaColorConstants.PROPERTIES_FILE_COLORING_COMMENT; 3263 3264 3272 public static final String PROPERTIES_FILE_COLORING_COMMENT_BOLD= PROPERTIES_FILE_COLORING_COMMENT + EDITOR_BOLD_SUFFIX; 3273 3274 3282 public static final String PROPERTIES_FILE_COLORING_COMMENT_ITALIC= PROPERTIES_FILE_COLORING_COMMENT + EDITOR_ITALIC_SUFFIX; 3283 3284 3292 public static final String PROPERTIES_FILE_COLORING_COMMENT_STRIKETHROUGH= PROPERTIES_FILE_COLORING_COMMENT + EDITOR_STRIKETHROUGH_SUFFIX; 3293 3294 3302 public static final String PROPERTIES_FILE_COLORING_COMMENT_UNDERLINE= PROPERTIES_FILE_COLORING_COMMENT + EDITOR_UNDERLINE_SUFFIX; 3303 3304 3315 public static final String PROPERTIES_FILE_COLORING_VALUE= IJavaColorConstants.PROPERTIES_FILE_COLORING_VALUE; 3316 3317 3325 public static final String PROPERTIES_FILE_COLORING_VALUE_BOLD= PROPERTIES_FILE_COLORING_VALUE + EDITOR_BOLD_SUFFIX; 3326 3327 3335 public static final String PROPERTIES_FILE_COLORING_VALUE_ITALIC= PROPERTIES_FILE_COLORING_VALUE + EDITOR_ITALIC_SUFFIX; 3336 3337 3345 public static final String PROPERTIES_FILE_COLORING_VALUE_STRIKETHROUGH= PROPERTIES_FILE_COLORING_VALUE + EDITOR_STRIKETHROUGH_SUFFIX; 3346 3347 3355 public static final String PROPERTIES_FILE_COLORING_VALUE_UNDERLINE= PROPERTIES_FILE_COLORING_VALUE + EDITOR_UNDERLINE_SUFFIX; 3356 3357 3368 public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT= IJavaColorConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT; 3369 3370 3378 public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_BOLD= PROPERTIES_FILE_COLORING_ASSIGNMENT + EDITOR_BOLD_SUFFIX; 3379 3380 3388 public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_ITALIC= PROPERTIES_FILE_COLORING_ASSIGNMENT + EDITOR_ITALIC_SUFFIX; 3389 3390 3398 public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_STRIKETHROUGH= PROPERTIES_FILE_COLORING_ASSIGNMENT + EDITOR_STRIKETHROUGH_SUFFIX; 3399 3400 3408 public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_UNDERLINE= PROPERTIES_FILE_COLORING_ASSIGNMENT + EDITOR_UNDERLINE_SUFFIX; 3409 3410 3421 public static final String PROPERTIES_FILE_COLORING_ARGUMENT= IJavaColorConstants.PROPERTIES_FILE_COLORING_ARGUMENT; 3422 3423 3431 public static final String PROPERTIES_FILE_COLORING_ARGUMENT_BOLD= PROPERTIES_FILE_COLORING_ARGUMENT + EDITOR_BOLD_SUFFIX; 3432 3433 3441 public static final String PROPERTIES_FILE_COLORING_ARGUMENT_ITALIC= PROPERTIES_FILE_COLORING_ARGUMENT + EDITOR_ITALIC_SUFFIX; 3442 3443 3451 public static final String PROPERTIES_FILE_COLORING_ARGUMENT_STRIKETHROUGH= PROPERTIES_FILE_COLORING_ARGUMENT + EDITOR_STRIKETHROUGH_SUFFIX; 3452 3453 3461 public static final String PROPERTIES_FILE_COLORING_ARGUMENT_UNDERLINE= PROPERTIES_FILE_COLORING_ARGUMENT + EDITOR_UNDERLINE_SUFFIX; 3462 3463 3472 public static final String CODEASSIST_LRU_HISTORY= "content_assist_lru_history"; 3474 3483 public static final String CODEASSIST_SORTER= "content_assist_sorter"; 3485 3496 public final static String EDITOR_SOURCE_HOVER_BACKGROUND_COLOR= "sourceHoverBackgroundColor"; 3498 3510 public final static String EDITOR_SOURCE_HOVER_BACKGROUND_COLOR_SYSTEM_DEFAULT= "sourceHoverBackgroundColor.SystemDefault"; 3512 3519 public static void initializeDefaultValues(IPreferenceStore store) { 3520 ColorRegistry registry= null; 3521 if (PlatformUI.isWorkbenchRunning()) 3522 registry= PlatformUI.getWorkbench().getThemeManager().getCurrentTheme().getColorRegistry(); 3523 3524 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false); 3525 3526 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY, PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART); 3528 store.setDefault(PreferenceConstants.DOUBLE_CLICK, PreferenceConstants.DOUBLE_CLICK_EXPANDS); 3529 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS, PreferenceConstants.UPDATE_WHILE_EDITING); 3530 store.setToDefault(PreferenceConstants.UPDATE_JAVA_VIEWS); 3532 store.setDefault(PreferenceConstants.LINK_BROWSING_PROJECTS_TO_EDITOR, true); 3533 store.setDefault(PreferenceConstants.LINK_BROWSING_PACKAGES_TO_EDITOR, true); 3534 store.setDefault(PreferenceConstants.LINK_BROWSING_TYPES_TO_EDITOR, true); 3535 store.setDefault(PreferenceConstants.LINK_BROWSING_MEMBERS_TO_EDITOR, true); 3536 3537 store.setDefault(PreferenceConstants.SEARCH_USE_REDUCED_MENU, true); 3538 3539 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES, false); 3541 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE, false); 3542 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_TYPEPARAMETERS, true); 3543 store.setDefault(PreferenceConstants.APPEARANCE_CATEGORY, true); 3544 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true); 3545 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false); 3546 store.setDefault(PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW, ""); store.setDefault(PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER, true); 3548 3549 store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER, "java;javax;org;com"); store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99); 3552 store.setDefault(PreferenceConstants.ORGIMPORTS_STATIC_ONDEMANDTHRESHOLD, 99); 3553 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true); 3554 3555 store.setDefault(PreferenceConstants.TYPEFILTER_ENABLED, ""); store.setDefault(PreferenceConstants.TYPEFILTER_DISABLED, ""); 3559 3564 store.setDefault(PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD, PreferenceConstants.REFACTOR_WARNING_SEVERITY); 3566 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false); 3567 store.setDefault(PreferenceConstants.REFACTOR_LIGHTWEIGHT, true); 3568 3569 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true); 3571 3572 if (store.getBoolean(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX)) { 3575 String prefix= store.getString(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX); 3576 if (prefix.length() > 0) { 3577 JavaCore.getPlugin().getPluginPreferences().setValue(JavaCore.CODEASSIST_FIELD_PREFIXES, prefix); 3578 store.setToDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX); 3579 store.setToDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX); 3580 } 3581 } 3582 if (store.getBoolean(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX)) { 3583 String suffix= store.getString(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX); 3584 if (suffix.length() > 0) { 3585 JavaCore.getPlugin().getPluginPreferences().setValue(JavaCore.CODEASSIST_FIELD_SUFFIXES, suffix); 3586 store.setToDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX); 3587 store.setToDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX); 3588 } 3589 } 3590 store.setDefault(PreferenceConstants.CODEGEN_KEYWORD_THIS, false); 3591 store.setDefault(PreferenceConstants.CODEGEN_IS_FOR_GETTERS, true); 3592 store.setDefault(PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME, "e"); store.setDefault(PreferenceConstants.CODEGEN_ADD_COMMENTS, false); 3594 store.setDefault(PreferenceConstants.CODEGEN_USE_OVERRIDE_ANNOTATION, true); 3595 3596 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER, "T,SF,SI,SM,F,I,C,M"); store.setDefault(PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER, "B,V,R,D"); store.setDefault(PreferenceConstants.APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER, false); 3600 3601 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true); 3603 setDefaultAndFireEvent( 3604 store, 3605 PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, 3606 findRGB(registry, IJavaThemeConstants.EDITOR_MATCHING_BRACKETS_COLOR, new RGB(192, 192,192))); 3607 3608 store.setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, true); 3609 store.setDefault(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, true); 3610 3611 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, true); 3612 3613 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(121, 121, 121)); 3614 3615 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4); 3616 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false); 3617 3618 setDefaultAndFireEvent( 3619 store, 3620 PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, 3621 findRGB(registry, IJavaThemeConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(63, 127, 95))); 3622 3623 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD, false); 3624 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_ITALIC, false); 3625 3626 setDefaultAndFireEvent( 3627 store, 3628 PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, 3629 findRGB(registry, IJavaThemeConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(63, 127, 95))); 3630 3631 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, false); 3632 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_ITALIC, false); 3633 3634 setDefaultAndFireEvent( 3635 store, 3636 PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, 3637 findRGB(registry, IJavaThemeConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0, 85))); 3638 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true); 3639 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_ITALIC, false); 3640 3641 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_ANNOTATION_COLOR, new RGB(100, 100, 100)); 3642 store.setDefault(PreferenceConstants.EDITOR_JAVA_ANNOTATION_BOLD, false); 3643 store.setDefault(PreferenceConstants.EDITOR_JAVA_ANNOTATION_ITALIC, false); 3644 3645 setDefaultAndFireEvent( 3646 store, 3647 PreferenceConstants.EDITOR_STRING_COLOR, 3648 findRGB(registry, IJavaThemeConstants.EDITOR_STRING_COLOR, new RGB(42, 0, 255))); 3649 3650 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD, false); 3651 store.setDefault(PreferenceConstants.EDITOR_STRING_ITALIC, false); 3652 3653 setDefaultAndFireEvent( 3654 store, 3655 PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, 3656 findRGB(registry, IJavaThemeConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(0, 0, 0))); 3657 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false); 3658 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_ITALIC, false); 3659 3660 setDefaultAndFireEvent(store, PreferenceConstants.EDITOR_JAVA_METHOD_NAME_COLOR, new RGB(0, 0, 0)); 3661 store.setDefault(PreferenceConstants.EDITOR_JAVA_METHOD_NAME_BOLD, false); 3662 store.setDefault(PreferenceConstants.EDITOR_JAVA_METHOD_NAME_ITALIC, false); 3663 3664 setDefaultAndFireEvent( 3665 store, 3666 PreferenceConstants.EDITOR_JAVA_KEYWORD_RETURN_COLOR, 3667 findRGB(registry, IJavaThemeConstants.EDITOR_JAVA_KEYWORD_RETURN_COLOR, new RGB(127, 0, 85))); 3668 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_RETURN_BOLD, true); 3669 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_RETURN_ITALIC, false); 3670 3671 setDefaultAndFireEvent( 3672 store, 3673 PreferenceConstants.EDITOR_JAVA_OPERATOR_COLOR, 3674 findRGB(registry, IJavaThemeConstants.EDITOR_JAVA_OPERATOR_COLOR, new RGB(0, 0, 0))); 3675 store.setDefault(PreferenceConstants.EDITOR_JAVA_OPERATOR_BOLD, false); 3676 store.setDefault(PreferenceConstants.EDITOR_JAVA_OPERATOR_ITALIC, false); 3677 3678 setDefaultAndFireEvent( 3679 store, 3680 PreferenceConstants.EDITOR_JAVA_BRACKET_COLOR, 3681 findRGB(registry, IJavaThemeConstants.EDITOR_JAVA_BRACKET_COLOR, new RGB(0, 0, 0))); 3682 store.setDefault(PreferenceConstants.EDITOR_JAVA_BRACKET_BOLD, false); 3683 store.setDefault(PreferenceConstants.EDITOR_JAVA_BRACKET_ITALIC, false); 3684 3685 setDefaultAndFireEvent( 3686 store, 3687 PreferenceConstants.EDITOR_TASK_TAG_COLOR, 3688 findRGB(registry, IJavaThemeConstants.EDITOR_TASK_TAG_COLOR, new RGB(127, 159, 191))); 3689 store.setDefault(PreferenceConstants.EDITOR_TASK_TAG_BOLD, true); 3690 store.setDefault(PreferenceConstants.EDITOR_TASK_TAG_ITALIC, false); 3691 3692 setDefaultAndFireEvent( 3693 store, 3694 PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, 3695 findRGB(registry, IJavaThemeConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127, 159, 191))); 3696 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true); 3697 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_ITALIC, false); 3698 3699 setDefaultAndFireEvent( 3700 store, 3701 PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, 3702 findRGB(registry, IJavaThemeConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127, 159))); 3703 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false); 3704 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_ITALIC, false); 3705 3706 setDefaultAndFireEvent( 3707 store, 3708 PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, 3709 findRGB(registry, IJavaThemeConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63, 191))); 3710 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false); 3711 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_ITALIC, false); 3712 3713 setDefaultAndFireEvent( 3714 store, 3715 PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, 3716 findRGB(registry, IJavaThemeConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63, 95, 191))); 3717 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, false); 3718 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_ITALIC, false); 3719 3720 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true); 3721 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY, 200); 3722 3723 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true); 3724 setDefaultAndFireEvent( 3725 store, 3726 PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, 3727 findRGB(registry, IJavaThemeConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(255, 255, 255))); 3728 setDefaultAndFireEvent( 3729 store, 3730 PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, 3731 findRGB(registry, IJavaThemeConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0, 0, 0))); 3732 setDefaultAndFireEvent( 3733 store, 3734 PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, 3735 findRGB(registry, IJavaThemeConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(255, 255, 255))); 3736 setDefaultAndFireEvent( 3737 store, 3738 PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, 3739 findRGB(registry, IJavaThemeConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(0, 0, 0))); 3740 setDefaultAndFireEvent( 3741 store, 3742 PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, 3743 findRGB(registry, IJavaThemeConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(255, 255, 0))); 3744 setDefaultAndFireEvent( 3745 store, 3746 PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, 3747 findRGB(registry, IJavaThemeConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(255, 0, 0))); 3748 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, "."); store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC, "@#"); store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS, true); 3751 store.setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY, false); 3752 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true); 3753 store.setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION, true); 3754 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES, true); 3755 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS, false); 3756 store.setDefault(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION, false); 3757 store.setDefault(PreferenceConstants.CODEASSIST_EXCLUDED_CATEGORIES, "org.eclipse.jdt.ui.spellingProposalCategory\0org.eclipse.jdt.ui.textProposalCategory\0"); store.setDefault(PreferenceConstants.CODEASSIST_CATEGORY_ORDER, "org.eclipse.jdt.ui.spellingProposalCategory:65545\0org.eclipse.jdt.ui.javaTypeProposalCategory:65540\0org.eclipse.jdt.ui.javaNoTypeProposalCategory:65539\0org.eclipse.jdt.ui.textProposalCategory:65541\0org.eclipse.jdt.ui.templateProposalCategory:2\0"); store.setDefault(PreferenceConstants.CODEASSIST_LRU_HISTORY, ""); store.setDefault(PreferenceConstants.CODEASSIST_SORTER, "org.eclipse.jdt.ui.RelevanceSorter"); store.setDefault(PreferenceConstants.CODEASSIST_FAVORITE_STATIC_MEMBERS, ""); 3763 store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true); 3764 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true); 3765 store.setDefault(PreferenceConstants.EDITOR_IMPORTS_ON_PASTE, true); 3766 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS, true); 3767 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS, true); 3768 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true); 3769 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true); 3770 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS, true); 3771 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS, false); 3772 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true); 3773 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, false); 3774 3775 int sourceHoverModifier= SWT.MOD2; 3776 String sourceHoverModifierName= Action.findModifierString(sourceHoverModifier); int nlsHoverModifier= SWT.MOD1 + SWT.MOD3; 3778 String nlsHoverModifierName= Action.findModifierString(SWT.MOD1) + "+" + Action.findModifierString(SWT.MOD3); store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS, "org.eclipse.jdt.ui.BestMatchHover;0;org.eclipse.jdt.ui.JavaSourceHover;" + sourceHoverModifierName + ";org.eclipse.jdt.ui.NLSStringHover;" + nlsHoverModifierName); store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS, "org.eclipse.jdt.ui.BestMatchHover;0;org.eclipse.jdt.ui.JavaSourceHover;" + sourceHoverModifier + ";org.eclipse.jdt.ui.NLSStringHover;" + nlsHoverModifier); 3782 store.setDefault(PreferenceConstants.EDITOR_SMART_TAB, true); 3783 store.setDefault(PreferenceConstants.EDITOR_SMART_BACKSPACE, true); 3784 store.setDefault(PreferenceConstants.EDITOR_ANNOTATION_ROLL_OVER, false); 3785 3786 store.setDefault(EDITOR_SOURCE_HOVER_BACKGROUND_COLOR_SYSTEM_DEFAULT, true); 3787 3788 store.setDefault(PreferenceConstants.FORMATTER_PROFILE, FormatterProfileManager.DEFAULT_PROFILE); 3789 3790 store.setDefault(PreferenceConstants.EDITOR_MARK_OCCURRENCES, true); 3792 store.setDefault(PreferenceConstants.EDITOR_STICKY_OCCURRENCES, true); 3793 store.setDefault(PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES, true); 3794 store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES, true); 3795 store.setDefault(PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES, true); 3796 store.setDefault(PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES, true); 3797 store.setDefault(PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES, true); 3798 store.setDefault(PreferenceConstants.EDITOR_MARK_EXCEPTION_OCCURRENCES, true); 3799 store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS, true); 3800 store.setDefault(PreferenceConstants.EDITOR_MARK_BREAK_CONTINUE_TARGETS, true); 3801 store.setDefault(PreferenceConstants.EDITOR_MARK_IMPLEMENTORS, true); 3802 3803 3804 store.setDefault(PreferenceConstants.SPELLING_LOCALE, "en_US"); String isInitializedKey= "spelling_locale_initialized"; if (!store.getBoolean(isInitializedKey)) { 3808 store.setValue(isInitializedKey, true); 3809 Locale locale= SpellCheckEngine.getDefaultLocale(); 3810 locale= SpellCheckEngine.findClosestLocale(locale); 3811 if (locale != null) 3812 store.setValue(PreferenceConstants.SPELLING_LOCALE, locale.toString()); 3813 } 3814 store.setDefault(PreferenceConstants.SPELLING_IGNORE_DIGITS, true); 3815 store.setDefault(PreferenceConstants.SPELLING_IGNORE_MIXED, true); 3816 store.setDefault(PreferenceConstants.SPELLING_IGNORE_SENTENCE, true); 3817 store.setDefault(PreferenceConstants.SPELLING_IGNORE_UPPER, true); 3818 store.setDefault(PreferenceConstants.SPELLING_IGNORE_URLS, true); 3819 store.setDefault(PreferenceConstants.SPELLING_IGNORE_SINGLE_LETTERS, true); 3820 store.setDefault(PreferenceConstants.SPELLING_IGNORE_AMPERSAND_IN_PROPERTIES, true); 3821 store.setDefault(JavaSpellingEngine.SPELLING_IGNORE_JAVA_STRINGS, true); 3822 store.setDefault(PreferenceConstants.SPELLING_IGNORE_NON_LETTERS, true); 3823 store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY, ""); 3825 store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY_ENCODING, System.getProperty("file.encoding")); 3828 store.setDefault(PreferenceConstants.SPELLING_PROPOSAL_THRESHOLD, 20); 3829 store.setDefault(SpellingEngine.SPELLING_PROBLEMS_THRESHOLD, 100); 3830 3834 store.setToDefault(PreferenceConstants.SPELLING_ENABLE_CONTENTASSIST); 3835 3836 3837 store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true); 3839 store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER, "org.eclipse.jdt.ui.text.defaultFoldingProvider"); store.setDefault(PreferenceConstants.EDITOR_FOLDING_JAVADOC, false); 3841 store.setDefault(PreferenceConstants.EDITOR_FOLDING_INNERTYPES, false); 3842 store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS, false); 3843 store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS, true); 3844 store.setDefault(PreferenceConstants.EDITOR_FOLDING_HEADERS, true); 3845 3846 setDefaultAndFireEvent( 3848 store, 3849 PreferenceConstants.PROPERTIES_FILE_COLORING_KEY, 3850 findRGB(registry, IJavaThemeConstants.PROPERTIES_FILE_COLORING_KEY, new RGB(0, 0, 0))); 3851 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_KEY_BOLD, false); 3852 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_KEY_ITALIC, false); 3853 3854 setDefaultAndFireEvent( 3855 store, 3856 PreferenceConstants.PROPERTIES_FILE_COLORING_VALUE, 3857 findRGB(registry, IJavaThemeConstants.PROPERTIES_FILE_COLORING_VALUE, new RGB(42, 0, 255))); 3858 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_VALUE_BOLD, false); 3859 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_VALUE_ITALIC, false); 3860 3861 setDefaultAndFireEvent( 3862 store, 3863 PreferenceConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT, 3864 findRGB(registry, IJavaThemeConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT, new RGB(0, 0, 0))); 3865 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT_BOLD, false); 3866 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT_ITALIC, false); 3867 3868 setDefaultAndFireEvent( 3869 store, 3870 PreferenceConstants.PROPERTIES_FILE_COLORING_ARGUMENT, 3871 findRGB(registry, IJavaThemeConstants.PROPERTIES_FILE_COLORING_ARGUMENT, new RGB(127, 0, 85))); 3872 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_ARGUMENT_BOLD, true); 3873 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_ARGUMENT_ITALIC, false); 3874 3875 setDefaultAndFireEvent( 3876 store, 3877 PreferenceConstants.PROPERTIES_FILE_COLORING_COMMENT, 3878 findRGB(registry, IJavaThemeConstants.PROPERTIES_FILE_COLORING_COMMENT, new RGB(63, 127, 95))); 3879 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_COMMENT_BOLD, false); 3880 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_COMMENT_ITALIC, false); 3881 3882 SemanticHighlightings.initDefaults(store); 3884 3885 NewJavaProjectPreferencePage.initDefaults(store); 3887 3888 store.setToDefault(EDITOR_SMART_HOME_END); store.setToDefault(EDITOR_LINE_NUMBER_RULER); store.setToDefault(EDITOR_LINE_NUMBER_RULER_COLOR); store.setToDefault(EDITOR_OVERVIEW_RULER); store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_USE_CUSTOM_CARETS); 3896 store.setToDefault(PreferenceConstants.EDITOR_CURRENT_LINE); store.setToDefault(PreferenceConstants.EDITOR_CURRENT_LINE_COLOR); 3899 store.setToDefault(PreferenceConstants.EDITOR_PRINT_MARGIN); store.setToDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN); store.setToDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR); 3903 store.setToDefault(PreferenceConstants.EDITOR_FOREGROUND_COLOR); store.setToDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR); store.setToDefault(PreferenceConstants.EDITOR_BACKGROUND_COLOR); store.setToDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR); store.setToDefault(PreferenceConstants.EDITOR_FIND_SCOPE_COLOR); store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SELECTION_FOREGROUND_DEFAULT_COLOR); store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SELECTION_BACKGROUND_DEFAULT_COLOR); 3911 store.setToDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE); 3913 store.setToDefault(PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED); 3915 store.setToDefault(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE); 3917 3918 CleanUpConstants.initDefaults(store); 3920 } 3921 3922 3927 public static IPreferenceStore getPreferenceStore() { 3928 return JavaPlugin.getDefault().getPreferenceStore(); 3929 } 3930 3931 3940 public static String encodeJRELibrary(String description, IClasspathEntry[] entries) { 3941 return NewJavaProjectPreferencePage.encodeJRELibrary(description, entries); 3942 } 3943 3944 3951 public static String decodeJRELibraryDescription(String encodedLibrary) { 3952 return NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary); 3953 } 3954 3955 3962 public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String encodedLibrary) { 3963 return NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary); 3964 } 3965 3966 3976 public static IClasspathEntry[] getDefaultJRELibrary() { 3977 return NewJavaProjectPreferencePage.getDefaultJRELibrary(); 3978 } 3979 3980 3989 public static String getPreference(String key, IJavaProject project) { 3990 String val; 3991 if (project != null) { 3992 val= new ProjectScope(project.getProject()).getNode(JavaUI.ID_PLUGIN).get(key, null); 3993 if (val != null) { 3994 return val; 3995 } 3996 } 3997 val= new InstanceScope().getNode(JavaUI.ID_PLUGIN).get(key, null); 3998 if (val != null) { 3999 return val; 4000 } 4001 return new DefaultScope().getNode(JavaUI.ID_PLUGIN).get(key, null); 4002 } 4003 4004 4013 private static void setDefaultAndFireEvent(IPreferenceStore store, String key, RGB newValue) { 4014 RGB oldValue= null; 4015 if (store.isDefault(key)) 4016 oldValue= PreferenceConverter.getDefaultColor(store, key); 4017 4018 PreferenceConverter.setDefault(store, key, newValue); 4019 4020 if (oldValue != null && !oldValue.equals(newValue)) 4021 store.firePropertyChangeEvent(key, oldValue, newValue); 4022 } 4023 4024 4033 private static RGB findRGB(ColorRegistry registry, String key, RGB defaultRGB) { 4034 if (registry == null) 4035 return defaultRGB; 4036 4037 RGB rgb= registry.getRGB(key); 4038 if (rgb != null) 4039 return rgb; 4040 4041 return defaultRGB; 4042 } 4043 4044} 4045 4046 | Popular Tags |