!7 !include #1016871 // main is not run sclass SnippetsDB extends DynModule { transient ReliableSingleThread rst = new(r updateMe); void start { useDBOf(#1016871); onConceptsChange(rst); fullUpdateAtStart = false; snippetsDB_init(); indexConceptField(CSnippet, 'type); } JComponent visualize() { ret centerBoldLabel(jLiveValueLabel(dm_calculatedLiveValue(this, S, func -> S { n2(countConcepts(CSnippet), "snippet") }))); } void enhanceFrame(Container f) { //super.enhanceFrame(f); addTitlePopupMenuItem(f, "Full download", rThread fullDownload); } // API for other modules L snippetsOfType(S type) { ret conceptsWhere(CSnippet, +type); } }