Uses 1113K of libraries. Click here for Pure Java version (7172L/34K).
1 | !7 |
2 | |
3 | cmodule2 Bla > DynPrintLogAndEnabled {
|
4 | start {
|
5 | dm_onAnyModulePopupMenu(voidfunc(JPopupMenu menu, S mod) {
|
6 | if (!enabled) ret; |
7 | temp enter(); |
8 | |
9 | LS names = sortedAlphanumIC(noArgumentMethodNames(dm_mod(mod))); |
10 | if (empty(names)) ret; |
11 | |
12 | JMenu subMenu = jmenu("Call function");
|
13 | for (S method : names) |
14 | addMenuItem(subMenu, names + "()", rThread { dm_call(mod, method) });
|
15 | addSubMenu(menu, subMenu); |
16 | }); |
17 | } |
18 | } |
Began life as a copy of #1027868
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1029665 |
| Snippet name: | Add function calls to all module title menus |
| Eternal ID of this version: | #1029665/3 |
| Text MD5: | c81a01ba49f6bf6332b6281df50504eb |
| Transpilation MD5: | b7d2c09f5d6d32b66e67342c42958337 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-19 15:15:51 |
| Source code size: | 491 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 508 / 631 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |