Uses 2805K of libraries. Click here for Pure Java version (6265L/43K).
!7 sclass ShowStandardClass extends DynModule { S function, text; transient SingleComponentPanel scp; JComponent visualize() { scp = singleComponentPanel(); updateVis(); ret scp; } void unvisualize() { scp = null; } start { dm_onTopInput(r updateMe); } void update { S s = dm_getInterestingString(); print("ShowStandardClass.update " + s); if (isIdentifier(s)) { S snippetID = standardClassesMap_cached().get(s); print("ShowStandardClass.snippetID " + snippetID); if (snippetID == null) ret; function = s; text = loadSnippet(snippetID); setModuleName(s + " [Standard Class]"); setModuleToolTip(snippetID); // not used yet updateVis(); } } void updateVis { if (scp != null) scp.setComponent(scrollableJavaxSyntaxTextAreaOrNull(text)); } }
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, vpdwwinrgdga
No comments. add comment
| Snippet ID: | #1015869 |
| Snippet name: | ShowStandardClass [DynModule] |
| Eternal ID of this version: | #1015869/17 |
| Text MD5: | c23a26fd0316284f1472ed3f1baa572c |
| Transpilation MD5: | d51b9da2ca9aff4467f8575e66b63398 |
| Author: | stefan |
| Category: | |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-14 16:55:05 |
| Source code size: | 871 bytes / 33 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 823 / 1058 |
| Version history: | 16 change(s) |
| Referenced in: | [show references] |