Skip to content

Commit d3b3dbb

Browse files
author
Federico Fissore
committed
Old Preferences class remains for backwards compatibility as a delegate for PreferencesData
1 parent 7816ee3 commit d3b3dbb

File tree

2 files changed

+10
-808
lines changed

2 files changed

+10
-808
lines changed

app/src/processing/app/Editor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public void windowDeactivated(WindowEvent e) {
258258
scrollPane = new RTextScrollPane(textarea, true);
259259
scrollPane.setBorder(new MatteBorder(0, 6, 0, 0, Theme.getColor("editor.bgcolor")));
260260
scrollPane.setViewportBorder(BorderFactory.createEmptyBorder());
261-
scrollPane.setLineNumbersEnabled(Preferences.getBoolean("editor.linenumbers"));
261+
scrollPane.setLineNumbersEnabled(PreferencesData.getBoolean("editor.linenumbers"));
262262
scrollPane.setIconRowHeaderEnabled(false);
263263

264264
Gutter gutter = scrollPane.getGutter();
@@ -1794,7 +1794,7 @@ protected void setCode(final SketchCodeDocument codeDoc) {
17941794

17951795
if (document == null) { // this document not yet inited
17961796
document = new RSyntaxDocument(new ArduinoTokenMakerFactory(base.getPdeKeywords()), RSyntaxDocument.SYNTAX_STYLE_CPLUSPLUS);
1797-
document.putProperty(PlainDocument.tabSizeAttribute, Preferences.getInteger("editor.tabs.size"));
1797+
document.putProperty(PlainDocument.tabSizeAttribute, PreferencesData.getInteger("editor.tabs.size"));
17981798

17991799
// insert the program text into the document object
18001800
try {

0 commit comments

Comments
 (0)