mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
422c111d81
Previously, EditorTab set the Document on the SketchCodeDocument, and the latter would listen for changes, only forwarding the modified status to SketchCode. This commit cuts out a step and lets EditorTab call SketchCode::setModified directly. Additionally, the DocumentTextChangedListener helper class is added, which wraps a simple (lambda) function to be called whenever anything about the document text is modified. This hides the verbosity of having to handle both insertion and deletion, and instead suffices with just having a single lambda function instead. |
||
---|---|---|
.. | ||
.settings | ||
lib | ||
src | ||
test | ||
test-lib | ||
.classpath | ||
.classpath_macosx | ||
.editorconfig | ||
.project | ||
build.xml |