Download Jar. Uses 3874K of libraries. Click here for Pure Java version (8343L/59K).
!7 static double delay = 1.0; // need 1 second hover before showing source code static JFrame frame; static new RestartableCountdown countdown; static S snippetToShow; p-subst-autorestart { onLocalMechAppend("Mouse hovers", vf1(f update)); } svoid update(S s) { //infoBox(s); bool off = jfind(s, "no longer") >= 0; if (off) { print("off"); countdown.stop(); } else { final TextImageAction tia = jextractSerializedObject(s, TextImageAction); if (tia != null && isSnippetID(tia.toolTip)) countdown.start(delay, r { snippetToShow = tia.toolTip; fS text = loadSnippet_cached(tia.toolTip); if (nempty(text)) swing { if (eq(snippetToShow, tia.toolTip)) frame = showFrame(snippetWithTitle_rev(tia.toolTip), jscroll(withMargin(wordWrapTypeWriterTextArea(text))), frame); } }); } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015337 |
Snippet name: | Display snippet source on hover action |
Eternal ID of this version: | #1015337/24 |
Text MD5: | 5b917425751060991be2dc7a759db9f2 |
Transpilation MD5: | f2dea5e4d575a20547573216671c53a2 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-17 13:57:33 |
Source code size: | 888 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 502 / 1327 |
Version history: | 23 change(s) |
Referenced in: | #1015342 - Test jextractSerializedObject (find structure string in free text, OK) |