srecord noeq JG22ProjectSelector(G22Utils g22utils) is Swingable { transient JLabel lblDB; cachedVisualize { lblDB = toolTip("Currently selected project (" + f2s(g22utils.projectDir()) + ")", /*boldLabel*/(jSimpleLabel(fileName(g22utils.projectDir())))); onClick(lblDB, evt -> new PopupMenuMaker(evt, menu -> { for (File otherDB : listMinus(g22utils.masterStuff().openConceptDirs(), g22utils.projectDir())) addMenuItem(menu, fileName(otherDB)+ " [Open]", rThread { g22utils.masterStuff().openDatabase(otherDB) }); addMenuItem(menu, "Manage or open projects...", rThread { g22utils.showUIURL("Projects")}); }).run()); ret lblDB; } }