[squeak-dev] The Trunk: Tools-ct.1063.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 15 16:34:23 UTC 2021

Christoph Thiede uploaded a new version of Tools to project The Trunk:

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

Name: Tools-ct.1063
Author: ct
Time: 7 September 2021, 12:40:09.39151 pm
UUID: 87e69187-5120-bc42-9030-ab295ce1b65b
Ancestors: Tools-cmm.1062

Fixes TextLinks to the comment, definition, or hierarchy of a class (available from the 'change emphasis' dialog, Cmd + 6).

Note that in the long term, we might want to get rid of this primitive obsession; but for now, please just let's eliminate this regression.

=============== Diff against Tools-cmm.1062 ===============

Item was changed:
  ----- Method: Model>>addItem: (in category '*Tools') -----
  addItem: classAndMethod
  	"Open a browser directly on the given class and method
  	Model new addItem: 'Model addItem:'
  	Model new addItem: 'Model>>addItem:'
  	self flag: #mref.	"classAndMethod is a String"
  		parse: classAndMethod  
  		toClassAndSelector: [ :class :sel |
  			class ifNil: [^self].
+ 			sel = #Comment ifTrue: [^ Browser fullOnCommentOfClass: class].
+ 			sel = #Definition ifTrue: [^ Browser newOnClass: class].
+ 			sel = #Hierarchy ifTrue: [^ HierarchyBrowser fullOnClass: class].
  			Browser newOnClass: class selector: sel

More information about the Squeak-dev mailing list