MCPcopy Index your code
hub / github.com/processing/processing / setLineText

Method setLineText

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

Replace the text on a specified line.

(int line, String what)

Source from the content-addressed store, hash-verified

1716 * Replace the text on a specified line.
1717 */
1718 public void setLineText(int line, String what) {
1719 startCompoundEdit();
1720 textarea.select(getLineStartOffset(line), getLineStopOffset(line));
1721 textarea.setSelectedText(what);
1722 stopCompoundEdit();
1723 }
1724
1725
1726 /**

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