Libraryless. Click here for Pure Java version (9658L/54K).
//static event executingSwingCode(Runnable code); static transient Set<IVF1<Runnable>> onExecutingSwingCode; public static void onExecutingSwingCode(IVF1<Runnable> f) { onExecutingSwingCode = createOrAddToSyncLinkedHashSet(onExecutingSwingCode, f); } public static void removeExecutingSwingCodeListener(IVF1<Runnable> f) { main remove(onExecutingSwingCode, f); } public static void executingSwingCode(Runnable code) { if (onExecutingSwingCode != null) for (var listener : onExecutingSwingCode) pcallF_typed(listener, code); }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1036363 |
| Snippet name: | executingSwingCode / onExecutingSwingCode |
| Eternal ID of this version: | #1036363/5 |
| Text MD5: | 289362923fccc2431f68074bfe4de702 |
| Transpilation MD5: | c53d9e4700a6cccf074b60c37fab0a05 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-11-26 18:04:25 |
| Source code size: | 532 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 409 / 532 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |