The Trunk: Morphic-mt.1086.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.1086.mcz

commits-2
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1086.mcz

==================== Summary ====================

Name: Morphic-mt.1086
Author: mt
Time: 18 February 2016, 4:37:06.594639 pm
UUID: e7ecb937-0654-40a5-b615-da378cd8cbad
Ancestors: Morphic-mt.1085

Increase robustness in Morphic projects by ensuring that the UI process is actually running if the process-to-debug is not the UI process. Otherwise debugging would still not work because the user could not interact with the GUI.

=============== Diff against Morphic-mt.1085 ===============

Item was changed:
  ----- Method: MorphicProject>>spawnNewProcessIfThisIsUI: (in category 'active process') -----
  spawnNewProcessIfThisIsUI: suspendedProcess
  "Initialize a UI process if needed. Answer true if suspendedProcess was interrupted
  from a UI process."
  self uiProcess == suspendedProcess ifTrue: [
  self spawnNewProcess.
  ^true
  ].
+
+ "Ensure that the UI process is running. We need to check the suspended context because the Debugger tends to call this twice."
+ (self uiProcess isSuspended and: [self uiProcess suspendedContext notNil])
+ ifTrue: [
+ self restoreDisplay.
+ self uiProcess resume].
+
  ^false "no new process was created"
  !