!7 !include #1001372 // direct nohupJavax static MultiMap index = caseInsensitiveMultiMap(); static AutoComboBox cbInput; p-subst { showCAL_defaultSize(700, 450); thread { downloadTypicalWebs(); updateIndex(); } centerBiggerConsole(); cbInput = replaceConsoleInputWithAutoComboBox(); bot(); consoleInput("George Bush"); addAskButton(); focusInput(); showControls(jcenteredline(jbutton("I want to teach", f makeDiagram)); calcOnConceptChangesInOtherProgram(circlesEditorDBID(), 1000, f updateIndex, true); } svoid makeDiagram { thread { loading { startCirclesEditor(); send("Circles Editor.", "new diagram with node *", consoleInput()); } } } svoid updateIndex { print("Updating index."); index = dwlw_fullNodeIndex_ci(); updateAutoComboBoxItems(cbInput, keys(index)); consoleStatus(n(index, "web")); } answer { s = trim(s); L nodes = index.get(lower(s)); if (nempty(nodes)) { showWeb(s, web_dropVisUnlessLoaded(cloneWeb(first(nodes).web))); ret "Found " + n(nodes, "node"); } }