Uses 1485K of libraries. Click here for Pure Java version (34366L/225K).
sclass G22LAScriptIDE<A extends G22LAScript> { settable G22Utils g22utils; settable S noScriptSelectedMsg = "Please select or create a script to edit it"; A script; SingleComponentPanel scp; JLeftArrowScriptIDE ide; *(G22Utils *g22utils) {} visualize { if (scp == null) scp = singleComponentPanel(); loadScript(script); ret scp; } void setScript(A script) { if (this.script != script) loadScript(script); } void loadScript(A script) { this.script = script; if (scp == null) ret; if (script == null) scp.set(jcenteredlabel(noScriptSelectedMsg())); else { ide = g22utils.leftArrowIDE(); modifyIDE(ide); ide.lvScript(varWithNotifyToLiveValue(S.class, script.varEditingText())); scp.set(wrapIDE(ide)); } } swappable JComponent wrapIDE(JLeftArrowScriptIDE ide) { ret ide.visualize(); } event settingUpIDE(JLeftArrowScriptIDE ide); swappable void modifyIDE(JLeftArrowScriptIDE ide) { ide.showTitle(false); settingUpIDE(ide); } }
Began life as a copy of #1034345
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034478 |
Snippet name: | G22LAScriptIDE - IDE for a G22LAScript [backup pefore tripartition] |
Eternal ID of this version: | #1034478/2 |
Text MD5: | 21914b171c603ee44c2fed72270c18ce |
Transpilation MD5: | ab3eb281d45658da990edc10d9686144 |
Author: | stefan |
Category: | javax / gazelle 22 |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-08 05:25:16 |
Source code size: | 1112 bytes / 46 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 136 / 201 |
Version history: | 1 change(s) |
Referenced in: | -