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

Method replace

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

Replace the current selection with whatever's in the replacement text field. @param isCompoundEdit True if the action is to be marked as a copmound edit

(boolean isCompoundEdit)

Source from the content-addressed store, hash-verified

424 * @param isCompoundEdit True if the action is to be marked as a copmound edit
425 */
426 public void replace(boolean isCompoundEdit) {
427 editor.setSelectedText(replaceField.getText(), isCompoundEdit);
428
429 editor.getSketch().setModified(true); // This necessary- calling replace()
430 // doesn't seem to mark a sketch as modified
431
432 setFound(false);
433 }
434
435
436 /**

Callers 11

actionPerformedMethod · 0.95
replaceAndFindNextMethod · 0.95
replaceAllMethod · 0.95
normalizeMethod · 0.45
updateMethod · 0.45
findClassInZipFileMethod · 0.45
pasteMethod · 0.45
WindowsPlatformClass · 0.45
setMenuMnemonicsMethod · 0.45
handlePrintMethod · 0.45

Calls 5

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

Tested by 1

normalizeMethod · 0.36