Transpiled version (12562L) is out of date.
svoid dm_handleEvalResult(O value, S shortened) { // handle images, GUI components, ... if (value cast BufferedImage) dm_showImage(value); else if (implementsInterfaceShortNamed(value, "MakesBufferedImage")) dm_showImage((BufferedImage) rcall getBufferedImage(value)); else if (shortClassNameIs Offer(value)) { thread { if (confirmYesNo(str(value))) callF(value); } } else { reMutable value = or(callOpt(value, "visualize"), value); if (value cast Component && getParent(value) == null) showFrame(shortened, value); } }
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: | 176 / 293 |
Version history: | 12 change(s) |
Referenced in: | [show references] |