Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.1023.mcz==================== Summary ====================
Name: Tools-mt.1023
Author: mt
Time: 6 January 2021, 11:12:15.085417 am
UUID: cc33f893-f9b4-2047-a2f9-b085897e017f
Ancestors: Tools-eem.1022
Improve robustness against erroneous menu builders.
=============== Diff against Tools-eem.1022 ===============
Item was changed:
----- Method: Model>>buildMenu:withBuilders:shifted: (in category '*Tools-pluggable menus') -----
buildMenu: aMenu withBuilders: builders shifted: aBoolean
+ " We let every builder modify the menu. Skip erroneous builders silently.
- " We let every builder modify the menu.
The builder should indicate whether to abort by returning nil."
| menu |
menu := aMenu.
builders do: [:builder |
+ menu := [self perform: builder method selector withEnoughArguments: { menu . aBoolean }]
+ ifError: [:msg | Transcript showln: 'Menu builder failed: ', msg. menu].
- menu := self perform: builder method selector withEnoughArguments: { menu . aBoolean }.
menu ifNil: [^ aMenu]].
^ menu
!