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

Method text

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

Sets a new text. @param txt new text @return true if text has changed

(final byte[] txt)

Source from the content-addressed store, hash-verified

69 * @return {@code true} if text has changed
70 */
71 boolean text(final byte[] txt) {
72 if(eq(txt, text)) return false;
73 final int tl = txt.length;
74 text = txt;
75 lines = -1;
76 noSelect();
77 search(searchContext, false);
78 if(pos > tl) pos = tl;
79 return true;
80 }
81
82 /**
83 * Sets a new search context.

Callers 15

insertMethod · 0.95
toCaseMethod · 0.95
moveMethod · 0.95
sortMethod · 0.95
delMethod · 0.95
TextPanelMethod · 0.45
setTextMethod · 0.45
getTextMethod · 0.45
commentMethod · 0.45
toCaseMethod · 0.45
sortMethod · 0.45
formatMethod · 0.45

Calls 3

noSelectMethod · 0.95
searchMethod · 0.95
eqMethod · 0.65

Tested by

no test coverage detected