The Trunk: ToolBuilder-Kernel-ct.133.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: ToolBuilder-Kernel-ct.133.mcz

commits-2
Marcel Taeumel uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-ct.133.mcz

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

Name: ToolBuilder-Kernel-ct.133
Author: ct
Time: 3 October 2019, 3:17:02.612083 am
UUID: b78b93ff-594c-b943-869f-f1af5a1180d3
Ancestors: ToolBuilder-Kernel-mt.132

Adds convenience method for choosing from a dictionary

UIManager default chooseFromLabeledValues: ((1 to: 10) collect: [:i | i asWords -> i] as: Dictionary)

=============== Diff against ToolBuilder-Kernel-mt.132 ===============

Item was added:
+ ----- Method: UIManager>>chooseFromLabeledValues: (in category 'ui requests') -----
+ chooseFromLabeledValues: aDictionary
+ "Choose a key from the given dictionary. Answer the corresponding value."
+ ^self chooseFromLabeledValues: aDictionary title: ''!

Item was added:
+ ----- Method: UIManager>>chooseFromLabeledValues:title: (in category 'ui requests') -----
+ chooseFromLabeledValues: aDictionary title: aString
+ "Choose a key from the given dictionary. Answer the corresponding value."
+ ^self chooseFrom: aDictionary keys values: aDictionary values title: aString!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: ToolBuilder-Kernel-ct.133.mcz

marcel.taeumel
That's a nice use case for OrderedDictionary. :-D

Best,
Marcel

Am 07.10.2019 08:21:12 schrieb [hidden email] <[hidden email]>:

Marcel Taeumel uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-ct.133.mcz

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

Name: ToolBuilder-Kernel-ct.133
Author: ct
Time: 3 October 2019, 3:17:02.612083 am
UUID: b78b93ff-594c-b943-869f-f1af5a1180d3
Ancestors: ToolBuilder-Kernel-mt.132

Adds convenience method for choosing from a dictionary

UIManager default chooseFromLabeledValues: ((1 to: 10) collect: [:i | i asWords -> i] as: Dictionary)

=============== Diff against ToolBuilder-Kernel-mt.132 ===============

Item was added:
+ ----- Method: UIManager>>chooseFromLabeledValues: (in category 'ui requests') -----
+ chooseFromLabeledValues: aDictionary
+ "Choose a key from the given dictionary. Answer the corresponding value."
+ ^self chooseFromLabeledValues: aDictionary title: ''!

Item was added:
+ ----- Method: UIManager>>chooseFromLabeledValues:title: (in category 'ui requests') -----
+ chooseFromLabeledValues: aDictionary title: aString
+ "Choose a key from the given dictionary. Answer the corresponding value."
+ ^self chooseFrom: aDictionary keys values: aDictionary values title: aString!