MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / commandExecute

Method commandExecute

src/main/java/ui/keys/UserKeyExec.java:230–304  ·  view source on GitHub ↗
(int command_id)

Source from the content-addressed store, hash-verified

228 }
229
230 private boolean commandExecute(int command_id) {
231 Config cf = Config.getInstance();
232 boolean connected = sd.roster.isLoggedIn();
233 final VirtualList current = VirtualCanvas.getInstance().getList();
234
235 if (current instanceof SplashScreen) {
236 if (command_id == 44) {
237 ((SplashScreen) current).destroyView();
238 return true;
239 }
240
241 return false;
242 }
243
244 if (current.doUserKeyAction(command_id)) {
245 return true;
246 }
247
248 // Common commands
249 switch (command_id) {
250 case 6:
251//#ifdef FILE_TRANSFER
252 new io.file.transfer.TransferManager();
253//#endif
254 return true;
255//#ifdef SERVICE_DISCOVERY
256 case 8:
257 if (connected)
258 new ServiceDiscovery(null, null, false);
259 return true;
260//#endif
261//#ifdef PRIVACY
262 case 9:
263 if (connected)
264 new PrivacySelect();
265 return true;
266//#endif
267//#ifdef USER_KEYS
268 case 10: //key pound
269 new UserKeysList();
270 return true;
271//#endif
272 /*case 12:
273 cf.lightState=!cf.lightState;
274 sd.roster.setLight(cf.lightState);
275 cf.saveToStorage();
276 return true;*/
277 case 14:
278 if (cf.allowMinimize)
279 BombusMod.getInstance().hideApp(true);
280 return true;
281 case 15:
282 ColorTheme.invertSkin();
283 return true;
284 case 16:
285//#ifdef CONSOLE
286 new XMLList();
287//#endif

Callers 1

keyExecuteMethod · 0.95

Calls 13

getInstanceMethod · 0.95
getInstanceMethod · 0.95
doUserKeyActionMethod · 0.95
getInstanceMethod · 0.95
invertSkinMethod · 0.95
saveToStorageMethod · 0.95
isLoggedInMethod · 0.80
hideAppMethod · 0.80
setFullScreenModeMethod · 0.80
blockScreenMethod · 0.80
getListMethod · 0.45

Tested by

no test coverage detected