[squeak-dev] The Trunk: Morphic-mt.1775.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Jun 30 12:58:47 UTC 2021
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1775.mcz
==================== Summary ====================
Name: Morphic-mt.1775
Author: mt
Time: 30 June 2021, 2:57:52.843141 pm
UUID: ecf1fb09-8cbe-bf42-bc47-eeb027e97e08
Ancestors: Morphic-mt.1774
Adds simple support for custom updaters in the world-main docking-bar. Just put an extension into TheWorldMainDockingBar and mark it with the pragma:
<updater: 'Update MyFancyProject'>
An entry will then appear in the "Squeak" menu right below "Update Squeak". After loading custom updaters, make sure to rebuild menus via:
TheWorldMainDockingBar updateInstances.
=============== Diff against Morphic-mt.1774 ===============
Item was changed:
----- Method: TheWorldMainDockingBar>>updateMenuItemOn: (in category 'submenu - squeak') -----
updateMenuItemOn: menu
+ | firstCustomUpdater |
menu addItem: [ :item |
item
contents: 'Update Squeak' translated;
help: 'Load latest code updates via the internet' translated;
icon: MenuIcons smallChangesIcon;
target: self;
+ selector: #updateSqueak ].
+
+ firstCustomUpdater := true.
+ TheWorldMainDockingBar methodsDo: [:method |
+ (method pragmaAt: #updater:) ifNotNil: [:pragma |
+ firstCustomUpdater ifTrue: [
+ menu addLine.
+ firstCustomUpdater := false].
+ menu addItem: [ :item |
+ item
+ contents: (pragma argumentAt: 1) translated;
+ target: self;
+ selector: method selector]]].!
- selector: #updateSqueak ]!
More information about the Squeak-dev
mailing list
|