MCPcopy Create free account
hub / github.com/BaseXdb/basex / paste

Method paste

basex-core/src/main/java/org/basex/gui/text/TextPanel.java:730–735  ·  view source on GitHub ↗

Pastes a string. @param string string to be pasted

(final String string)

Source from the content-addressed store, hash-verified

728 * @param string string to be pasted
729 */
730 private void paste(final String string) {
731 final int pos = editor.pos();
732 if(editor.isSelected()) editor.delete();
733 editor.insert(string);
734 finish(pos);
735 }
736
737 /**
738 * Copies the selected text to the clipboard.

Callers 2

mousePressedMethod · 0.95
executeMethod · 0.80

Calls 5

finishMethod · 0.95
isSelectedMethod · 0.80
insertMethod · 0.65
posMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected