The Inbox: Tools-ct.871.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.871.mcz

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

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

Name: Tools-ct.871
Author: ct
Time: 9 August 2019, 10:51:22.366412 pm
UUID: 7d29f50a-0ded-6a47-b933-b5d232fe44a0
Ancestors: Tools-mt.870

Fix a bug that raised a KeyNotFound error when diplaying a comment in a MessageTrace

Example to reproduce:
self systemNavigation browseMethodsWithSourceString: #Object

=============== Diff against Tools-mt.870 ===============

Item was changed:
  ----- Method: CodeHolder>>formattedLabel:forSelector:inClass: (in category 'message list') -----
  formattedLabel: aString forSelector: aSymbol inClass: aClass
  "Show deprecated messages differently so that users recognize them quickly to avoid them."
 
  | formattedLabel |
+ (#(Definition Comment) includes: aSymbol)
- aSymbol = #Definition
  ifTrue: [aClass isDeprecated not
  ifTrue: [^ aString]]
  ifFalse: [(aClass compiledMethodAt: aSymbol) isDeprecated not
  ifTrue: [^ aString]].
 
  formattedLabel := aString asText.
 
  (self userInterfaceTheme deprecatedMessageAttributes ifNil: [{TextColor gray. TextEmphasis struckOut}]) do: [:textAttribute |
  formattedLabel addAttribute: textAttribute].
 
  ^ formattedLabel.!