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

Method del

basex-core/src/main/java/org/basex/gui/text/TextEditor.java:962–966  ·  view source on GitHub ↗

Deletes the current selection.

()

Source from the content-addressed store, hash-verified

960 * Deletes the current selection.
961 */
962 private void del() {
963 final int s = Math.min(start, end), e = Math.max(start, end), ts = size();
964 text(new ByteList(ts - e + s).add(text, 0, s).add(text, e, ts).finish());
965 pos = s;
966 }
967
968 /**
969 * Deletes lines.

Callers 2

deletePrevMethod · 0.95
deleteMethod · 0.95

Calls 6

sizeMethod · 0.95
textMethod · 0.95
addMethod · 0.65
minMethod · 0.45
maxMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected