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

10
LINES

< > BotCompany Repo | #1003627 // isAWTThread

JavaX fragment (include)

// TODO: test if android complains about this
static bool isAWTThread() {
  if (isAndroid()) ret false;
  if (isHeadless()) ret false;
  ret isAWTThread_awt();
}

static bool isAWTThread_awt() {
  ret SwingUtilities.isEventDispatchThread();
}

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: 707 / 1117
Version history: 3 change(s)
Referenced in: [show references]