Uses 911K of libraries. Click here for Pure Java version (9042L/47K).
!7 cmodule EISM > DynPrintLog { start { ownResource(vmBus_onShowingPopupMenu((component, menu) -> { temp enter(); if (!isShortNamed ImageSurface(component)) ret; print("Image surface popup, enhancing"); File file = cast getOpt file(component); if (file != null) { Rect r = toRect(component~.Rectangle getSelection()); addPopupMenuItem(menu, "Save selection as element...", rThread { inputText("Element name", name -> setFileInfoField(file, name, structOr(r, "-"))); }); } })); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027249 |
| Snippet name: | Enhance Image Surface Menus |
| Eternal ID of this version: | #1027249/12 |
| Text MD5: | 4b01529dbafe28af32531b5c45bc2de0 |
| Transpilation MD5: | 92f8f659c50f281479df37c32c58c259 |
| 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: | 2020-02-26 18:38:00 |
| Source code size: | 593 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 407 / 1433 |
| Version history: | 11 change(s) |
| Referenced in: | -