Used instead of the windowClosing event handler, since it's not called on mode switch. Called when closing the editor window. Stops running debug sessions and kills the variable inspector window.
()
| 1310 | * sessions and kills the variable inspector window. |
| 1311 | */ |
| 1312 | @Override |
| 1313 | public void dispose() { |
| 1314 | //System.out.println("window dispose"); |
| 1315 | // quit running debug session |
| 1316 | if (debugEnabled) { |
| 1317 | debugger.stopDebug(); |
| 1318 | } |
| 1319 | if (inspector != null) { |
| 1320 | inspector.dispose(); |
| 1321 | } |
| 1322 | preprocessingService.dispose(); |
| 1323 | pdex.dispose(); |
| 1324 | super.dispose(); |
| 1325 | } |
| 1326 | |
| 1327 | |
| 1328 | /** |
no test coverage detected