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 ]!
Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.1058.mcz
==================== Summary ====================
Name: Tools-mt.1058
Author: mt
Time: 22 June 2021, 8:58:40.213448 am
UUID: dd77c5e8-ea36-4e94-9022-de53acef15d2
Ancestors: Tools-eem.1057
Fixes missing "references to binding" entry in DictionaryInspector menu.
The bug was that there are bindings other than (sub-)instances of Binding, even regular Associations. Well, #isVariableBinding is older than Environment's Binding hierarchy. Not sure whether even Undeclared should hold instances of Binding.
See http://lists.squeakfoundation.org/pipermail/squeak-dev/2021-June/215860.html
=============== Diff against Tools-eem.1057 ===============
Item was changed:
----- Method: DictionaryInspector>>isBindingSelected (in category 'bindings') -----
isBindingSelected
"Whether the currently selection association is a binding to a class or global."
^ self selectedKey ifNil: [false] ifNotNil: [:key |
+ (self object associationAt: key) isVariableBinding]!
- (self object associationAt: key) isKindOf: Binding]!
Marcel Taeumel uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-mt.945.mcz
==================== Summary ====================
Name: Collections-mt.945
Author: mt
Time: 18 June 2021, 8:02:50.788904 am
UUID: d551c74f-90b4-400a-8952-d9d4ff31e3bb
Ancestors: Collections-eem.944
Extends constant character names to support #return.
Fixes constant character names to work with all current constants, which, e.g., includes #arrowUp etc.
Drop #newPage in favor of #pageDown (and #pageUp). Note that #newPage still works as a constant. It will just not show up when you print a non-printable character.
=============== Diff against Collections-eem.944 ===============
Item was changed:
----- Method: Character class>>constantNames (in category 'private') -----
constantNames
+ ^ #( backspace delete return lf enter delete escape null space tab arrowDown arrowUp arrowLeft arrowRight end home pageDown pageUp euro insert )!
- ^ #( backspace cr delete escape lf null newPage space tab ).!
Item was added:
+ ----- Method: Character class>>return (in category 'accessing untypeable characters') -----
+ return
+ "Answer the Character representing a carriage return."
+
+ ^self value: 13!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1773.mcz
==================== Summary ====================
Name: Morphic-mt.1773
Author: mt
Time: 14 June 2021, 8:31:51.352374 am
UUID: d4056dd6-8c5f-e045-9c9a-b6b4b34b42a3
Ancestors: Morphic-ct.1772
Adds explanation about why not sending super in the recent selectionIndex: fix.
=============== Diff against Morphic-ct.1772 ===============
Item was changed:
----- Method: PluggableMultiColumnListMorph>>selectionIndex: (in category 'selection') -----
selectionIndex: viewIndex
listMorphs do: [:listMorph | listMorph selectedRow: (viewIndex min: self listSize)].
+ "ct: As per the invariant defined in #setListParameters, listMorphs always includes listMorph. Subsequently, every super send in #selectionIndex: would be without effect because #selectionIndex already has been updated in the child class. Since selection highlighting is also not relevant for multi-column list morphs (this hook is only used by SimpleHierarchicalListMorph), we can refuse this bequest but send #scrollSelectionIntoView manually."
self scrollSelectionIntoView.!