()
| 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. |
no test coverage detected