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

Method sort

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

Sorts text.

()

Source from the content-addressed store, hash-verified

317 * Sorts text.
318 */
319 public final void sort() {
320 final int caret = editor.pos();
321 final DialogSort ds = new DialogSort(gui);
322 if(!ds.ok() || !editor.sort()) return;
323
324 hist.store(editor.text(), caret, editor.pos());
325 computeHeight.invokeLater(true);
326 repaint();
327 }
328
329 /**
330 * Formats the selected text.

Callers

nothing calls this directly

Calls 5

invokeLaterMethod · 0.80
okMethod · 0.65
posMethod · 0.45
storeMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected