MCPcopy Index your code
hub / github.com/benfry/processing4 / setLineText

Method setLineText

app/src/processing/app/ui/Editor.java:1456–1462  ·  view source on GitHub ↗

Replace the text on a specified line.

(int line, String what)

Source from the content-addressed store, hash-verified

1454 * Replace the text on a specified line.
1455 */
1456 @SuppressWarnings("unused")
1457 public void setLineText(int line, String what) {
1458 startCompoundEdit();
1459 textarea.select(getLineStartOffset(line), getLineStopOffset(line));
1460 textarea.setSelectedText(what);
1461 stopCompoundEdit();
1462 }
1463
1464
1465 /**

Callers

nothing calls this directly

Calls 6

startCompoundEditMethod · 0.95
getLineStartOffsetMethod · 0.95
getLineStopOffsetMethod · 0.95
stopCompoundEditMethod · 0.95
selectMethod · 0.80
setSelectedTextMethod · 0.45

Tested by

no test coverage detected