Libraryless. Click here for Pure Java version (10211L/72K).
1 | svoid dm_onAnyModulePopupMenu(VF2<JPopupMenu, S> onMenu) { |
2 | DynModule m = dm_current_mandatory(); |
3 | dm_vmBus_onMessage showingPopupMenu(voidfunc(JComponent c, JPopupMenu menu) { |
4 | if (!classNameEndsWith(c, 'InternalFrameTitlePane)) ret; |
5 | S module = dm_moduleForFrame(getInternalFrame(c)); |
6 | if (module == null) ret; |
7 | temp m.enter(); |
8 | callF(onMenu, menu, module); |
9 | }); |
10 | } |
11 | |
12 | svoid dm_onAnyModulePopupMenu(IVF2<JPopupMenu, S> onMenu) { |
13 | dm_onAnyModulePopupMenu(ivf2ToVF2(onMenu)); |
14 | } |
15 | |
16 | svoid dm_onAnyModulePopupMenu(IVF3<JPopupMenu, S, Component> onMenu) { |
17 | DynModule m = dm_current_mandatory(); |
18 | dm_vmBus_onMessage showingPopupMenu(voidfunc(JComponent c, JPopupMenu menu) { |
19 | if (!classNameEndsWith(c, 'InternalFrameTitlePane)) ret; |
20 | S module = dm_moduleForFrame(getInternalFrame(c)); |
21 | if (module == null) ret; |
22 | temp m.enter(); |
23 | callF(onMenu, menu, module, c); |
24 | }); |
25 | } |
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1020949 |
Snippet name: | dm_onAnyModulePopupMenu - augment any module's popup menu |
Eternal ID of this version: | #1020949/6 |
Text MD5: | 709ef8a6c4460ec1f96b833908fcdd50 |
Transpilation MD5: | f495d6a5bf0de3a71e06086391fb7842 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-26 17:58:24 |
Source code size: | 918 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 347 / 475 |
Version history: | 5 change(s) |
Referenced in: | [show references] |