MCPcopy Index your code
hub / github.com/benfry/processing4 / getProcessingApp

Method getProcessingApp

app/src/processing/app/Platform.java:410–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

408
409
410 static protected File getProcessingApp() {
411 File appFile;
412 if (Platform.isMacOS()) {
413 // walks up from Processing.app/Contents/Java to Processing.app
414 // (or whatever the user has renamed it to)
415 appFile = getContentFile("../..");
416 } else if (Platform.isWindows()) {
417 appFile = getContentFile("processing.exe");
418 } else {
419 appFile = getContentFile("processing");
420 }
421 try {
422 return appFile.getCanonicalFile();
423
424 } catch (Exception e) {
425 e.printStackTrace();
426 }
427 return null;
428 }
429
430
431 // Not great, shows the crusty Duke icon in the dock.

Callers 1

handleRestartMethod · 0.95

Calls 4

isMacOSMethod · 0.95
getContentFileMethod · 0.95
isWindowsMethod · 0.95
printStackTraceMethod · 0.45

Tested by

no test coverage detected