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

Method format

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

Formats the selected text.

()

Source from the content-addressed store, hash-verified

330 * Formats the selected text.
331 */
332 public final void format() {
333 final int caret = editor.pos();
334 if(editor.format(rend.getSyntax())) hist.store(editor.text(), caret, editor.pos());
335 computeHeight.invokeLater(true);
336 }
337
338 @Override
339 public final void setEnabled(final boolean enabled) {

Callers

nothing calls this directly

Calls 5

getSyntaxMethod · 0.80
invokeLaterMethod · 0.80
posMethod · 0.45
storeMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected