Event handler called when hitting the stop button. Stops a running debug session or performs standard stop action if not currently debugging.
()
| 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) { |
no test coverage detected