svoid addPopupItemsForImageFile(JPopupMenu menu, final File f) { if (f == null) ret; if (!hasJPEGExtension(f)) addMenuItem(menu, "Convert to JPEG (save space by lossy compression)", r-thread { jpegify(f) }); addMenuItem(menu, "Upload to image server", r-thread { uploadFileToImageServer(f) }); addMenuItem(menu, "Copy path", r { copyFileToClipboard(f) }); }
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019085 |
Snippet name: | addPopupItemsForImageFile |
Eternal ID of this version: | #1019085/3 |
Text MD5: | 5a74248796634d19fc1f2257c9f192d2 |
Author: | stefan |
Category: | javax / gui / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-27 01:43:16 |
Source code size: | 375 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 453 / 480 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |