[squeak-dev] The Inbox: Tools-jr.1174.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Aug 28 20:50:54 UTC 2022

A new version of Tools was added to project The Inbox:

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

Name: Tools-jr.1174
Author: jr
Time: 28 August 2022, 10:50:52.028406 pm
UUID: 621ad914-6dc8-334f-8128-8c0e5d707ea2
Ancestors: Tools-jr.1173

Allow conversion of the navigation history to a collection with all the visited elements and to remove elements from the history.

It is required for Lexicon's "-- active --" category list item and for its "-" button to remove messages from the active set.

=============== Diff against Tools-jr.1173 ===============

Item was added:
+ ----- Method: MessageNavigation>>asCollection (in category 'converting') -----
+ asCollection
+ 	^ backwardHistory, {current}, forwardHistory reversed!

Item was added:
+ ----- Method: MessageNavigation>>remove:ifAbsent: (in category 'removing') -----
+ remove: anObject ifAbsent: absentBlock
+ 	backwardHistory removeAllSuchThat: [:each | each = anObject].
+ 	forwardHistory removeAllSuchThat: [:each | each = anObject].
+ 	current = anObject ifTrue: [current := nil].!

More information about the Squeak-dev mailing list