[squeak-dev] The Trunk: Tools-nice.763.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jun 10 16:03:52 UTC 2017


Nicolas Cellier uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-nice.763.mcz

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

Name: Tools-nice.763
Author: nice
Time: 10 June 2017, 6:03:33.633858 pm
UUID: 515d1a63-9454-4778-89f7-4cdb81eb8894
Ancestors: Tools-eem.762

Massively replace ifNotNilDo: by ifNotNil:
We don't need two different selectors to do a single thing.

=============== Diff against Tools-eem.762 ===============

Item was changed:
  ----- Method: MessageTrace>>messageListIndex: (in category 'actions') -----
  messageListIndex: anInteger
  	autoSelectStrings notEmpty ifTrue: 
  		[ autoSelectString :=
  			anInteger = 0
  				ifTrue: [ '' ]
  				ifFalse:
  					[ messageListIndex := anInteger.  "setting the window label, below, can't wait for this.."
  					self containingWindow setLabel: (self windowLabelAt: anInteger).
+ 					(autoSelectStrings at: anInteger) ifNotNil: [ : fullSelector | fullSelector keywords first ] ] ].
- 					(autoSelectStrings at: anInteger) ifNotNilDo: [ : fullSelector | fullSelector keywords first ] ] ].
  	anInteger > 0 ifTrue:
  		[ self
  			messageAt: anInteger
  			beSelected: true ].
  	super messageListIndex: anInteger
  !

Item was changed:
  ----- Method: StringHolder>>copyReference (in category '*Tools') -----
  copyReference
  	"Copy the selected selector to the clipboard"
+ 	self selectedMessageName ifNotNil:
- 	self selectedMessageName ifNotNilDo:
  		[ : selector | Clipboard clipboardText:
  			(self selectedClassOrMetaClass
  				ifNil: [ selector asString ]
  				ifNotNilDo: [ : cls | (cls >> selector) reference ]) ]!



More information about the Squeak-dev mailing list