[squeak-dev] The Inbox: ToolBuilder-Kernel-ct.162.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Jul 17 13:26:43 UTC 2022

A new version of ToolBuilder-Kernel was added to project The Inbox:

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

Name: ToolBuilder-Kernel-ct.162
Author: ct
Time: 17 July 2022, 3:26:41.516615 pm
UUID: dc34f48c-6a59-a746-9151-486b8dfb3fcf
Ancestors: ToolBuilder-Kernel-eem.161

In menu construction from tuples, allows nil values for the help.

Follow up of ToolBuilder-Kernel-eem.161. Complements Morphic-ct.2021. For instance, some menus in the Git Browser failed to open since that change. See SquitBrowser>>#buildMenu:from: and senders. Inbox because I'm not sure whether we should allow nil values here or whether Squot should be fixed instead.

=============== Diff against ToolBuilder-Kernel-eem.161 ===============

Item was added:
+ ----- Method: PluggableMenuSpec>>addList: (in category 'construction') -----
+ addList: aList
+ 	"Add the given items to this menu, where each item is a pair (<string> <actionSelector>)..  If an element of the list is simply the symobl $-, add a line to the receiver.  The optional third element of each entry, if present, provides balloon help."
+ 	aList do: [:tuple |
+ 		tuple == #-
+ 			ifTrue: [self addSeparator]
+ 			ifFalse:[ | item |
+ 				item := self add: tuple first target: model selector: tuple second argumentList: #().
+ 				tuple size > 2 ifTrue:
+ 					[tuple third ifNotNil: [:help |
+ 						item help: help withCRs]]]]!

More information about the Squeak-dev mailing list