Libraryless. Click here for Pure Java version (14635L/101K).
1 | !7 |
2 | |
3 | sclass GhostModules extends DynCalculatedList { |
4 | void start { |
5 | ownTimer(doEvery(30.0, r updateMe)); |
6 | } |
7 | |
8 | JComponent visualize() { |
9 | JList list = cast super.visualize(); |
10 | ret setBackground(awtColor("#35312F"), |
11 | jCenteredBackgroundImage(#1101314, |
12 | wrap(jtransparent_hard(list)))); |
13 | } |
14 | |
15 | L<S> calc() { |
16 | ret map(dm_ghostModules(), func(Class c, GhostModule m) { |
17 | S programID = str(getOpt(getMainClass(c), 'programID)); |
18 | bool hasInstance = m.instance! != null; |
19 | ret programID + "/" + shortClassName(c) + " - " + or2(m.name, "?") |
20 | + (hasInstance ? "" : " [instance gone]"); |
21 | }); |
22 | } |
23 | } |
Began life as a copy of #1016185
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: | #1016229 |
Snippet name: | Ghost Modules (Deleted but still in memory) - Fancy design [dev.] |
Eternal ID of this version: | #1016229/2 |
Text MD5: | 6e3ba742cd2e2a9faa56d0023f54bd06 |
Transpilation MD5: | afed6bcc17f94056a295d22ed889dc39 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-11 13:15:35 |
Source code size: | 660 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 381 / 532 |
Version history: | 1 change(s) |
Referenced in: | [show references] |