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

Method setSelection

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

Source from the content-addressed store, hash-verified

1399
1400
1401 public void setSelection(int start, int stop) {
1402 // make sure that a tool isn't asking for a bad location
1403 start = PApplet.constrain(start, 0, textarea.getDocumentLength());
1404 stop = PApplet.constrain(stop, 0, textarea.getDocumentLength());
1405
1406 textarea.select(start, stop);
1407 }
1408
1409
1410 /**

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