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

Method mode

basex-core/src/main/java/org/basex/gui/GUIInput.java:108–115  ·  view source on GitHub ↗

Sets the input mode. @param mode mode

(final String mode)

Source from the content-addressed store, hash-verified

106 * @param mode mode
107 */
108 void mode(final String mode) {
109 hint(mode + Text.DOTS).setText("");
110
111 final Data data = gui.context.data();
112 final int i = data == null ? 2 : gui.gopts.get(GUIOptions.SEARCHMODE);
113 history(i == 0 ? GUIOptions.SEARCH : i == 1 ?
114 GUIOptions.XQUERY : GUIOptions.COMMANDS, gui.gopts);
115 }
116
117 /**
118 * Checks if the input is a command.

Callers 2

GUIMethod · 0.80
refreshControlsMethod · 0.80

Calls 5

historyMethod · 0.80
getMethod · 0.65
setTextMethod · 0.45
hintMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected