MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / run

Method run

CodenameOne/src/com/codename1/ui/SideMenuBar.java:1149–1173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1147 Display.getInstance().scheduleBackgroundTask(new Runnable() {
1148
1149 @Override
1150 public void run() {
1151 Display.getInstance().invokeAndBlock(new Runnable() {
1152
1153 @Override
1154 public void run() {
1155 while (Display.getInstance().getCurrent() != parent) { //NOPMD CompareObjectsWithEquals
1156 try {
1157 Thread.sleep(40);
1158 } catch (InterruptedException ex) {
1159 Thread.currentThread().interrupt();
1160 return;
1161 }
1162 }
1163 }
1164 });
1165
1166 Display.getInstance().callSerially(new Runnable() {
1167
1168 @Override
1169 public void run() {
1170 parent.actionCommandImpl(c, e);
1171 }
1172 });
1173 }
1174 });
1175
1176 }

Callers

nothing calls this directly

Calls 9

getInstanceMethod · 0.95
sleepMethod · 0.95
currentThreadMethod · 0.95
cleanMethod · 0.95
callSeriallyMethod · 0.65
invokeAndBlockMethod · 0.45
getCurrentMethod · 0.45
interruptMethod · 0.45
actionCommandImplMethod · 0.45

Tested by

no test coverage detected