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

Method setSelection

app/src/processing/app/ui/Editor.java:1663–1669  ·  view source on GitHub ↗
(int start, int stop)

Source from the content-addressed store, hash-verified

1661
1662
1663 public void setSelection(int start, int stop) {
1664 // make sure that a tool isn't asking for a bad location
1665 start = PApplet.constrain(start, 0, textarea.getDocumentLength());
1666 stop = PApplet.constrain(stop, 0, textarea.getDocumentLength());
1667
1668 textarea.select(start, stop);
1669 }
1670
1671
1672 /**

Callers 9

insertTextMethod · 0.95
handleAutoFormatMethod · 0.95
findMethod · 0.80
replaceAllMethod · 0.80
handleImportLibraryMethod · 0.80
clearSelectionMethod · 0.80
selectLineMethod · 0.80
cursorToLineStartMethod · 0.80
cursorToLineEndMethod · 0.80

Calls 3

constrainMethod · 0.95
getDocumentLengthMethod · 0.80
selectMethod · 0.80

Tested by

no test coverage detected