static L<TextImageAction> moduleLibraryForNiceButtons(L<S> list, final VF1<S> action) { final SS iconMap = mechMap("Icons for modules"); ret map(list, func(fS line) -> TextImageAction { fL<S> l = splitAtSlash(line); S moduleID = first(l); TextImageAction tia = textImageActionToolTip( line, #1101288, r { pcallF(action, line) }, moduleID); tia.more = litmapOrNull(lazyImageID := lookup_first(iconMap, line, moduleID, last(l))); ret tia; }); }
Began life as a copy of #1015366
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016104 |
| Snippet name: | moduleLibraryForNiceButtons |
| Eternal ID of this version: | #1016104/3 |
| Text MD5: | 173637c909fcde9be8ac113ae14b049f |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-06 12:44:41 |
| Source code size: | 512 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 627 / 672 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |