1 | static void awt_onFileChange(double seconds, JComponent componentToBindTo, final File file, final long lastModificationSeen, final Runnable r) { |
2 | installTimer(componentToBindTo, toMS(seconds), new Runnable { |
3 | long lastMod = lastModificationSeen; |
4 | public void run() { |
5 | long mod = file.lastModified(); |
6 | if (mod != lastMod) { |
7 | lastMod = mod; |
8 | call(r); |
9 | } |
10 | } |
11 | }); |
12 | |
13 | swingAndWait(r); |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004395 |
Snippet name: | awt_onFileChange |
Eternal ID of this version: | #1004395/1 |
Text MD5: | dc9bcb4d726a69b3f4aaeb688f4787d5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-15 17:49:57 |
Source code size: | 436 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 555 / 539 |
Referenced in: | [show references] |