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

Method replace

app/src/processing/app/ui/FindReplace.java:404–412  ·  view source on GitHub ↗

Replace the current selection with whatever is in the replacement text field.

(boolean isCompoundEdit)

Source from the content-addressed store, hash-verified

402 * replacement text field.
403 */
404 public void replace(boolean isCompoundEdit) {
405 editor.setSelectedText(replaceField.getText(), isCompoundEdit);
406
407 // This necessary because calling replace()
408 // doesn't seem to mark a sketch as modified
409 editor.getSketch().setModified(true);
410
411 setFound(false);
412 }
413
414
415 /**

Callers 14

FindReplaceMethod · 0.95
replaceAndFindNextMethod · 0.95
replaceAllMethod · 0.95
getPairMethod · 0.45
wordsFolderExhaustMethod · 0.45
updateMethod · 0.45
findClassInZipFileMethod · 0.45
pasteMethod · 0.45
WindowsPlatformClass · 0.45
setMenuMnemonicsMethod · 0.45
svgToImageMultMethod · 0.45

Calls 5

setFoundMethod · 0.95
getSketchMethod · 0.80
setSelectedTextMethod · 0.45
getTextMethod · 0.45
setModifiedMethod · 0.45

Tested by

no test coverage detected