The Inbox: Tools-ct.1021.mcz

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

The Inbox: Tools-ct.1021.mcz

A new version of Tools was added to project The Inbox:

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

Name: Tools-ct.1021
Author: ct
Time: 3 January 2021, 8:44:07.705149 pm
UUID: de36bf14-60b2-d745-9ade-df88c56b645c
Ancestors: Tools-mt.1019

Hotfix for fatal error in MVC projects when switching from an explorer to an inspector.

Regression since Tools-mt.998 (elimination of 'Active' variables): [Project current world] now consistently answers a ControlManager instance in an MVC project rather than nil. Unfortunately, ControlManager does not implement the stepping protocol like Morphic does ...

For now, let ObjectExplorer >> #world only answer actually steppable, i.e. morphic worlds, so stepping is disabled safely in MVC. Note that, however, at a later point we might want to talk about stepping support for MVC again ... maybe? The Process Browser already supports it. :-)

=============== Diff against Tools-mt.1019 ===============

Item was changed:
  ----- Method: ObjectExplorer>>release (in category 'monitoring') -----
+ self world ifNotNil: [ :world | world stopStepping: self selector: #step ].
- self world ifNotNil: [ self world stopStepping: self selector: #step ].
  super release.!

Item was changed:
  ----- Method: ObjectExplorer>>stopMonitoring (in category 'monitoring') -----
  monitorList := nil.
+ self world ifNotNil: [ :world | world stopStepping: self selector: #step].!
- self world stopStepping: self selector: #step!

Item was changed:
  ----- Method: ObjectExplorer>>world (in category 'monitoring') -----
+ | project |
+ project := Project current.
+ project isMorphic ifFalse: [^ nil].
+ ^ project world!
- ^ Project current world!