MCPcopy Index your code
hub / github.com/processing/processing / handleStop

Method handleStop

java/src/processing/mode/java/JavaEditor.java:1116–1145  ·  view source on GitHub ↗

Event handler called when hitting the stop button. Stops a running debug session or performs standard stop action if not currently debugging.

()

Source from the content-addressed store, hash-verified

1114 * session or performs standard stop action if not currently debugging.
1115 */
1116 public void handleStop() {
1117 if (debugger.isStarted()) {
1118 debugger.stopDebug();
1119
1120 } else {
1121 toolbar.activateStop();
1122
1123 try {
1124 synchronized (runtimeLock) {
1125 if (runtimeLaunchRequested) {
1126 // Cancel the launch before the runtime was created
1127 runtimeLaunchRequested = false;
1128 }
1129 if (runtime != null) {
1130 // Cancel the launch after the runtime was created
1131 runtime.close(); // kills the window
1132 runtime = null;
1133 }
1134 }
1135 } catch (Exception e) {
1136 statusError(e);
1137 }
1138
1139 toolbar.deactivateStop();
1140 toolbar.deactivateRun();
1141
1142 // focus the PDE again after quitting presentation mode [toxi 030903]
1143 toFront();
1144 }
1145 }
1146
1147
1148 public void handleStep(int modifiers) {

Callers 2

actionPerformedMethod · 0.95
internalCloseRunnerMethod · 0.95

Calls 7

statusErrorMethod · 0.95
isStartedMethod · 0.80
stopDebugMethod · 0.80
activateStopMethod · 0.80
deactivateStopMethod · 0.80
closeMethod · 0.45
deactivateRunMethod · 0.45

Tested by

no test coverage detected