[squeak-dev] The Inbox: Tools-ct.1146.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Apr 2 16:43:42 UTC 2022


A new version of Tools was added to project The Inbox:
http://source.squeak.org/inbox/Tools-ct.1146.mcz

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

Name: Tools-ct.1146
Author: ct
Time: 2 April 2022, 6:43:17.222896 pm
UUID: 2dd18343-a81d-a142-a2b8-382364160052
Ancestors: Tools-ul.1145

Makes it possible to debug the inactive Morphic UI process from the process browser. Adds #selectedProcess convenience.

=============== Diff against Tools-ul.1145 ===============

Item was changed:
  ----- Method: ProcessBrowser class>>registerWellKnownProcesses (in category 'class initialization') -----
  registerWellKnownProcesses
  	"Associate each well-known process with a nickname and two flags: allow-stop, and allow-debug.
  	Additional processes may be added to this list as required"
  
  	WellKnownProcesses := OrderedCollection new.
  	self registerWellKnownProcess: []
  		label: 'no process'
  		allowStop: false
  		allowDebug: false.
  	self registerWellKnownProcess: [Smalltalk lowSpaceWatcherProcess]
  		label: 'the low space watcher'
  		allowStop: false
  		allowDebug: false.
  	self registerWellKnownProcess: [WeakArray runningFinalizationProcess]
  		label: 'the WeakArray finalization process'
  		allowStop: false
  		allowDebug: false.
  	self registerWellKnownProcess: [Processor activeProcess]
  		label: 'the UI process'
  		allowStop: true
  		allowDebug: true.
  	self registerWellKnownProcess: [Processor backgroundProcess]
  		label: 'the idle process'
  		allowStop: false
  		allowDebug: false.
  	self registerWellKnownProcess: [Sensor interruptWatcherProcess]
  		label: 'the user interrupt watcher'
  		allowStop: false
  		allowDebug: false.
  	self registerWellKnownProcess: [Sensor eventTicklerProcess]
  		label: 'the event tickler'
  		allowStop: false
  		allowDebug: false.
  	self registerWellKnownProcess: [Project uiProcess]
  		label: 'the inactive Morphic UI process'
  		allowStop: true
+ 		allowDebug: true.
- 		allowDebug: false.
  "	self registerWellKnownProcess:
  			[Smalltalk at: #SoundPlayer ifPresent: [:sp | sp playerProcess]]
  		label: 'the Sound Player'
  		allowStop: false
  		allowDebug: false."
  	self registerWellKnownProcess:
  			[ScheduledControllers ifNotNil: [ScheduledControllers activeControllerProcess]]
  		label: 'the inactive MVC controller process'
  		allowStop: false
  		allowDebug: true.
  	self registerWellKnownProcess:
  			[Smalltalk at: #CPUWatcher ifPresent: [:cw | cw currentWatcherProcess]]
  		label: 'the CPUWatcher'
  		allowStop: false
  		allowDebug: false
  !

Item was added:
+ ----- Method: ProcessBrowser>>selectedProcess (in category 'accessing') -----
+ selectedProcess
+ 
+ 	self processListIndex = 0 ifTrue: [^ nil].
+ 	^ self processList at: self processListIndex!



More information about the Squeak-dev mailing list