1 | static int autoVMExit_visibleObjects() { |
2 | int objectCount = 0; |
3 | |
4 | // Scan for windows |
5 | |
6 | Map unimportantWindows = cast vm_generalMap_get("unimportant windows"); |
7 | Window[] windowList = Window.getWindows(); |
8 | for (Window window : windowList) { |
9 | if (window.isVisible() && !containsKey(unimportantWindows, window)) |
10 | ++objectCount; |
11 | } |
12 | |
13 | // Scan for tray icons |
14 | |
15 | try { |
16 | objectCount += SystemTray.getSystemTray().getTrayIcons().length; |
17 | } catch (Throwable e) { |
18 | // ignore |
19 | } |
20 | |
21 | // Scan for JavaFX stages |
22 | |
23 | try { |
24 | objectCount += l((L) call(_getClass("com.sun.javafx.robot.impl.FXRobotHelper"), "getStages")); |
25 | } catch { |
26 | } |
27 | |
28 | ret objectCount; |
29 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006666 |
Snippet name: | autoVMExit_visibleObjects |
Eternal ID of this version: | #1006666/4 |
Text MD5: | 992376383e32f3d50b67990b012ae648 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-11 10:26:52 |
Source code size: | 699 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 520 / 524 |
Version history: | 3 change(s) |
Referenced in: | [show references] |