[squeak-dev] The Inbox: Protocols-jr.66.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Aug 10 20:52:33 UTC 2019


A new version of Protocols was added to project The Inbox:
http://source.squeak.org/inbox/Protocols-jr.66.mcz

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

Name: Protocols-jr.66
Author: jr
Time: 10 August 2019, 10:52:44.688208 pm
UUID: d24c7b8e-2920-0a46-9a93-e89755df5ad4
Ancestors: Protocols-jr.65

Quick fix to highlight messages implemented in the browsed class of a Lexicon again

=============== Diff against Protocols-jr.65 ===============

Item was added:
+ ----- Method: Lexicon>>formattedLabel:forSelector:inClass: (in category 'message list') -----
+ formattedLabel: aString forSelector: aSymbol inClass: aClass
+ 	"Highlight messages implemented in the targetClass in bold print."
+ 	
+ 	| formattedLabel |
+ 	formattedLabel := super formattedLabel: aString forSelector: aSymbol inClass: aClass.
+ 	aClass = targetClass ifTrue:
+ 		[formattedLabel := formattedLabel asText.
+ 		(self userInterfaceTheme ownMessageAttributes ifNil: [{TextEmphasis bold}]) do: [:textAttribute |
+ 			formattedLabel addAttribute: textAttribute]].
+ 
+ 	^ formattedLabel.!



More information about the Squeak-dev mailing list