Libraryless. Click here for Pure Java version (15918L/97K).
sclass TranspileWithErrorWindow { settable S snippetID; JFastLogView_noWrap transpilationErrorBox; settable Runnable transpileAction; event success; event error(Throwable error); /*void transpile { var tfs = new TranspileForServer_v2(snippetID); tfs.run(); }*/ public void run aka runMe() { infoBox("Transpiling " + snippetID); try { transpileAction.run(); } catch e { infoBox("Transpilation error. " + e); awt { bool first = transpilationErrorBox == null; transpilationErrorBox = maximizeFrame(scrollAllTheWayDown(showText_fast_noWrap(transpilationErrorBox, "Transpilation Error", renderStackTrace(e)))); if (first) { setFrameIcon(#1101268, transpilationErrorBox); addButtonsToWindow(transpilationErrorBox, jbuttonWithDisable("Medium transpile", r runMe) ); } } error(e); ret; } infoBox("Transpiled OK!"); hideWindow(transpilationErrorBox); transpilationErrorBox = null; success(); } /*selfType coresToUse(int coresToUse) { tfs.runTranspiler.coresToUse(coresToUse); this; }*/ }
Began life as a copy of #1018437
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035543 |
Snippet name: | TranspileWithErrorWindow - successor of transpileOnServerWithErrorWindow |
Eternal ID of this version: | #1035543/13 |
Text MD5: | 273e2326ce9295d935f7c62e1b4e07f6 |
Transpilation MD5: | 13d2b887d56bf13580ebeef046694ab5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-06-16 14:23:19 |
Source code size: | 1232 bytes / 46 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 111 / 227 |
Version history: | 12 change(s) |
Referenced in: | #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167) |