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

Method dockIconSpecified

core/src/processing/awt/PSurfaceAWT.java:578–589  ·  view source on GitHub ↗

@return true if -Xdock:icon was specified on the command line

()

Source from the content-addressed store, hash-verified

576 * @return true if -Xdock:icon was specified on the command line
577 */
578 private boolean dockIconSpecified() {
579 // TODO This is incomplete... Haven't yet found a way to figure out if
580 // the app has an icns file specified already. Help?
581 List<String> jvmArgs =
582 ManagementFactory.getRuntimeMXBean().getInputArguments();
583 for (String arg : jvmArgs) {
584 if (arg.startsWith("-Xdock:icon")) {
585 return true; // dock image already set
586 }
587 }
588 return false;
589 }
590
591
592 @Override

Callers 1

setProcessingIconMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected