Libraryless. Click here for Pure Java version (14573L/101K).
!7 sclass ModuleList extends DynCalculatedList { start { dm_vmBus_onMessage('moduleDeleted, rstUpdate()); } O getModule(S item) { ret item == null ? null : callCreator('getModuleByID, firstIntAsString(item)); } visualize { JList list = assertNotNull("JList", (JList) super.visualize()); onDoubleClickOrEnter(list, voidfunc(fS s) { dm_showModule(getModule(s)) }); for (final Pair<S, VF1<O>> p : dm_moduleMenuItems()) listPopupMenuItem(list, p.a, voidfunc(fS s) { thread { callF(p.b, getModule(s)); } }); ret list; } LS calc() { ret map(func(final O m) -> S { "[" + dm_moduleID(m) + "] " + or2(pcallF(func -> S { dm_moduleName(m) }), "?") }, modulesToList()); } L<O> modulesToList() { ret dm_listStems(); } }
Began life as a copy of #1016132
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016674 |
| Snippet name: | Module List [Dyn Module] |
| Eternal ID of this version: | #1016674/10 |
| Text MD5: | 892439788eb022620ad340df16538be4 |
| Transpilation MD5: | cd9980d0206163ce5535524d64f22e8a |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-22 20:05:47 |
| Source code size: | 819 bytes / 29 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 728 / 3603 |
| Version history: | 9 change(s) |
| Referenced in: | #1016702 - Loaded Module Search [Dyn Module] |