Transpiled version (12562L) is out of date.
1 | svoid dm_handleEvalResult(O value, S shortened) { |
2 | // handle images, GUI components, ... |
3 | |
4 | if (value cast BufferedImage) |
5 | dm_showImage(value); |
6 | else if (implementsInterfaceShortNamed(value, "MakesBufferedImage")) |
7 | dm_showImage((BufferedImage) rcall getBufferedImage(value)); |
8 | else if (shortClassNameIs Offer(value)) { |
9 | thread { |
10 | if (confirmYesNo(str(value))) |
11 | callF(value); |
12 | } |
13 | } else { |
14 | reMutable value = or(callOpt(value, "visualize"), value); |
15 | if (value cast Component && getParent(value) == null) |
16 | showFrame(shortened, value); |
17 | } |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033621 |
Snippet name: | dm_handleEvalResult |
Eternal ID of this version: | #1033621/13 |
Text MD5: | 0558b53f9822baf9b2b9da709f46d16e |
Author: | stefan |
Category: | javax / stefan's os / eval |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-05 23:47:29 |
Source code size: | 595 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 178 / 297 |
Version history: | 12 change(s) |
Referenced in: | [show references] |