!1000805 // awt !636 // to process next line - yes it's hacky... !include #1000915 // Flag // must be called from a non-awt thread! static S slte(final S description) { return slte(description, ""); } // must be called from a non-awt thread! static S slte(final S description, final S defaultInput) { final new Flag done; final Class prog = hotwire("#1000897"); awt { set(prog, "input", defaultInput); set(prog, "description", description); setOpt(prog, "_noExit", true); set(prog, "onOK", runnable { done.raise(); }); set(prog, "onCancel", runnable { done.raise(); }); callMain(prog); } done.waitUntilUp(); return (Boolean) get(prog, "ok") ? (S) get(prog, "input") : null; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000916 |
Snippet name: | slte function |
Eternal ID of this version: | #1000916/1 |
Text MD5: | cdc0cdf2d9f2d6d2ad3474c956a98bca |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-22 17:49:59 |
Source code size: | 754 bytes / 28 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 752 / 1050 |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |