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

Method finish

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

Finishes a command. @param old old cursor position; store entry to history if position != -1

(final int old)

Source from the content-addressed store, hash-verified

750 * @param old old cursor position; store entry to history if position != -1
751 */
752 private void finish(final int old) {
753 if(old != -1) hist.store(editor.text(), old, editor.pos());
754 computeHeight.invokeLater(true);
755 release(Action.CHECK);
756 }
757
758 /**
759 * Stops an old text cursor thread and, if requested, starts a new one.

Callers 7

pasteMethod · 0.95
completeMethod · 0.95
delMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45

Calls 5

releaseMethod · 0.95
invokeLaterMethod · 0.80
storeMethod · 0.45
textMethod · 0.45
posMethod · 0.45

Tested by

no test coverage detected