1 | svoid addPopupItemsForImageFile(JPopupMenu menu, final File f) { |
2 | if (f == null) ret; |
3 | if (!hasJPEGExtension(f)) |
4 | addMenuItem(menu, "Convert to JPEG (save space by lossy compression)", r-thread { jpegify(f) }); |
5 | addMenuItem(menu, "Upload to image server", r-thread { uploadFileToImageServer(f) }); |
6 | addMenuItem(menu, "Copy path", r { copyFileToClipboard(f) }); |
7 | } |
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: | 452 / 479 |
Version history: | 2 change(s) |
Referenced in: | [show references] |