Uses 2805K of libraries. Click here for Pure Java version (14557L/101K).
!7 sclass ShowJDKClass extends DynModule { S file, 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(); if (isIdentifier(s)) { S file = first(endingWithIC(allJDKSourceFileNames(), "/" + s + ".java")); if (file == null) ret; if (!setField(+file)) ret; setField(text := loadTextFileFromZip(jdkSrcZip(), file)); setModuleName(file); updateVis(); } } void updateVis { if (scp != null) scp.setComponent(scrollableJavaxSyntaxTextAreaOrNull(text)); } }
Began life as a copy of #1015869
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1015930 |
| Snippet name: | ShowJDKClass [DynModule] |
| Eternal ID of this version: | #1015930/4 |
| Text MD5: | 7c7c8025f20a1fa678f99dd397563875 |
| Transpilation MD5: | 80192ada6056ced9ea30d8c48241f28e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-14 16:57:49 |
| Source code size: | 741 bytes / 28 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 874 / 1400 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |