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

commits at source.squeak.org commits at source.squeak.org
Tue Sep 7 10:40:11 UTC 2021


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

==================== 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"
  	MessageSet 
  		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