()
| 163 | |
| 164 | |
| 165 | @Override |
| 166 | public void setDefaults() { |
| 167 | |
| 168 | Theme theme; |
| 169 | try { |
| 170 | theme = Theme.load(getClass().getResourceAsStream( |
| 171 | "/org/fife/ui/rsyntaxtextarea/themes/dark.xml")); |
| 172 | } catch (IOException ioe) { |
| 173 | ioe.printStackTrace(); |
| 174 | return; |
| 175 | } |
| 176 | |
| 177 | location = new Point(0,0); |
| 178 | size = new Dimension(650,500); |
| 179 | appTheme = DEFAULT_APP_THEME; |
| 180 | toolbarVisible = true; |
| 181 | statusBarVisible = true; |
| 182 | lineNumbersVisible = true; |
| 183 | tabSize = RTextArea.getDefaultTabSize(); |
| 184 | emulateTabsWithSpaces = false; |
| 185 | textMode = RTextArea.INSERT_MODE; |
| 186 | tabPlacement = JTabbedPane.TOP; |
| 187 | printFont = null; // i.e., use RText's font. |
| 188 | backgroundColor = theme.bgColor; |
| 189 | imageAlpha = 0.3f; // Arbitrary initial value. |
| 190 | wordWrap = false; |
| 191 | caretColor = theme.caretColor; |
| 192 | selectionColor = theme.selectionBG; |
| 193 | selectedTextColor = theme.selectionFG; |
| 194 | useSelectedTextColor = theme.useSelectionFG; |
| 195 | colorScheme = theme.scheme; |
| 196 | SyntaxFilters syntaxFilters = new SyntaxFilters(); |
| 197 | syntaxFilters.restoreDefaultFileFilters(); |
| 198 | syntaxFiltersString = syntaxFilters.toString(); |
| 199 | maxFileHistorySize = 20; |
| 200 | fileHistoryString = null; |
| 201 | currentLineHighlightEnabled = true; |
| 202 | currentLineHighlightColor = theme.currentLineHighlight; |
| 203 | mainView = RText.TABBED_VIEW; |
| 204 | overrideEditorStyles = false; |
| 205 | language = "en"; // Default to English. |
| 206 | bracketMatchingEnabled = true; |
| 207 | matchBothBrackets = true; |
| 208 | matchedBracketBGColor = theme.matchedBracketBG; |
| 209 | matchedBracketBorderColor = theme.matchedBracketFG; |
| 210 | marginLineEnabled = true; |
| 211 | marginLinePosition = RTextArea.getDefaultMarginLinePosition(); |
| 212 | marginLineColor = theme.marginLineColor; |
| 213 | highlightSecondaryLanguages = true; |
| 214 | secondaryLanguageColors = new Color[3]; |
| 215 | secondaryLanguageColors[0] = theme.secondaryLanguages[0]; |
| 216 | secondaryLanguageColors[1] = theme.secondaryLanguages[1]; |
| 217 | secondaryLanguageColors[2] = theme.secondaryLanguages[2]; |
| 218 | visibleWhitespace = false; |
| 219 | showEOLMarkers = false; |
| 220 | showTabLines = false; |
| 221 | tabLinesColor = theme.marginLineColor; |
| 222 | rememberWhitespaceLines = true; |
no test coverage detected