Uses 1059K of libraries. Click here for Pure Java version (14840L/84K).
1 | !7 |
2 | |
3 | cprint { |
4 | transient JFastLogView_noWrap transpilationErrorBox; |
5 | |
6 | start-thread { |
7 | dm_onSnippetEdited(voidfunc(S snippetID) { |
8 | if (!sameSnippetID(snippetID, #1030833)) ret; |
9 | S toTranspile = #1030602; |
10 | bool medium = true; |
11 | Runnable onSuccess = null; |
12 | |
13 | //transpileOnServerWithErrorWindow(toTranspile, true, null); |
14 | try { |
15 | Pair<Bool, S> p = transpileHereOrOnServer(toTranspile, medium); |
16 | awt { |
17 | if (p.a) { |
18 | status("Transpiled OK!"); |
19 | hideWindow(transpilationErrorBox); |
20 | transpilationErrorBox = null; |
21 | callFInNewThread(onSuccess); |
22 | } else { |
23 | S text = htmlDecode(htmlDecode(p.b)); /// XXX |
24 | status("Transpilation error. " + text); |
25 | bool first = transpilationErrorBox == null; |
26 | transpilationErrorBox = maximizeFrame(scrollAllTheWayDown(showText_fast_noWrap(transpilationErrorBox, "Transpilation Error", text))); |
27 | if (first) { |
28 | setFrameIcon(#1101268, transpilationErrorBox); |
29 | } |
30 | } |
31 | } |
32 | } catch print e { |
33 | status("Transpilation problem. " + e); |
34 | } |
35 | }); |
36 | } |
37 | |
38 | void status(S s) { infoBox(s); } |
39 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030993 |
Snippet name: | Transpile BEA main snippet on include change |
Eternal ID of this version: | #1030993/8 |
Text MD5: | 75c210266496b8605876135c592fdc3f |
Transpilation MD5: | f1c5ae4a003c5ebb05080686f29b2bff |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-19 15:02:50 |
Source code size: | 1260 bytes / 39 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 167 / 1839 |
Version history: | 7 change(s) |
Referenced in: | [show references] |