[squeak-dev] The Trunk: CommandLine-tpr.21.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Apr 19 18:37:13 UTC 2022


tim Rowledge uploaded a new version of CommandLine to project The Trunk:
http://source.squeak.org/trunk/CommandLine-tpr.21.mcz

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

Name: CommandLine-tpr.21
Author: tpr
Time: 19 April 2022, 10:33:07.448055 am
UUID: 1286c069-60d5-44fa-8d88-88dc7209a9b8
Ancestors: CommandLine-ct.20

Add a ToolBuilder ability to show a list of options - typically a small number, maybe with a cancel button etc - as opposed to an arbitrary list of values. This separates it out from the chooseFrom:... protocol

=============== Diff against CommandLine-ct.20 ===============

Item was added:
+ ----- Method: DummyUIManager>>chooseOptionFrom:lines:title: (in category 'ui requests') -----
+ chooseOptionFrom: aList lines: linesArray title: aString
+ 	self askForProvidedAnswerTo: aString ifSupplied: [:answer | 
+ 		(answer = #cancel or: [answer isNil]) ifTrue: [^ 0].
+ 		^ aList indexOf: answer].
+ 
+ 	^ 1!



More information about the Squeak-dev mailing list