Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1003627 // isAWTThread

JavaX fragment (include)

1  
// TODO: test if android complains about this
2  
static bool isAWTThread() {
3  
  if (isAndroid()) ret false;
4  
  if (isHeadless()) ret false;
5  
  ret isAWTThread_awt();
6  
}
7  
8  
static bool isAWTThread_awt() {
9  
  ret SwingUtilities.isEventDispatchThread();
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003627
Snippet name: isAWTThread
Eternal ID of this version: #1003627/4
Text MD5: 00a0c292b49acafa808fb46f3e78fd34
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-17 18:02:13
Source code size: 251 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 487 / 905
Version history: 3 change(s)
Referenced in: [show references]