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

Method insertText

app/src/processing/app/ui/Editor.java:1639–1645  ·  view source on GitHub ↗
(String what)

Source from the content-addressed store, hash-verified

1637
1638
1639 public void insertText(String what) {
1640 startCompoundEdit();
1641 int caret = getCaretOffset();
1642 setSelection(caret, caret);
1643 textarea.setSelectedText(what);
1644 stopCompoundEdit();
1645 }
1646
1647
1648 public String getSelectedText() {

Callers

nothing calls this directly

Calls 5

startCompoundEditMethod · 0.95
getCaretOffsetMethod · 0.95
setSelectionMethod · 0.95
stopCompoundEditMethod · 0.95
setSelectedTextMethod · 0.45

Tested by

no test coverage detected