[squeak-dev] The Trunk: ToolBuilder-Morphic-tpr.323.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jan 16 02:15:17 UTC 2023


tim Rowledge uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-tpr.323.mcz

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

Name: ToolBuilder-Morphic-tpr.323
Author: tpr
Time: 15 January 2023, 6:15:16.536806 pm
UUID: 843fe2d3-6c95-49e9-b289-f2296e63d662
Ancestors: ToolBuilder-Morphic-ct.322

Remove some variable shadowing

=============== Diff against ToolBuilder-Morphic-ct.322 ===============

Item was changed:
  ----- Method: PluggableTreeMorph>>setSelectedPath: (in category 'selection') -----
  setSelectedPath: aMorph
  
  	| items wrapperPath |
+ 	setSelectedPathSelector ifNotNil:
+ 		[wrapperPath := selectedWrapper 
- 	setSelectedPathSelector ifNotNil: [:setSelectedPathSelector |
- 		wrapperPath := selectedWrapper 
  			ifNil: [#()]
  			ifNotNil: [
  				wrapperPath := {selectedWrapper} asOrderedCollection.
+ 				[wrapperPath last parent notNil] whileTrue:
+ 					[wrapperPath addLast: wrapperPath last parent].
- 				[wrapperPath last parent notNil] 
- 					whileTrue: [wrapperPath addLast: wrapperPath last parent].
  				wrapperPath].
  		items := wrapperPath collect: [:w | w item].
  		model
  			perform: setSelectedPathSelector
  			with: items].
  			
  !



More information about the Squeak-dev mailing list