The Trunk: CommandLine-pre.13.mcz

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

The Trunk: CommandLine-pre.13.mcz

commits-2
Patrick Rein uploaded a new version of CommandLine to project The Trunk:
http://source.squeak.org/trunk/CommandLine-pre.13.mcz

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

Name: CommandLine-pre.13
Author: pre
Time: 30 April 2019, 3:28:42.737906 pm
UUID: f19eb98b-5b82-b84e-b754-8ce35bafa52f
Ancestors: CommandLine-tpr.12

Makes the ProvideAnswerNotification handling more robust with regard to the input (actual value or index)

=============== Diff against CommandLine-tpr.12 ===============

Item was changed:
  ----- Method: DummyUIManager>>chooseFrom:values:lines:title: (in category 'ui requests') -----
  chooseFrom: labelList values: valueList lines: linesArray title: aString
  self askForProvidedAnswerTo: aString ifSupplied: [:answer |
  (answer = #cancel or: [answer isNil]) ifTrue: [^ nil].
+ ^ valueList at: (valueList indexOf: answer) ifAbsent: [
+ answer isNumber
+ ifTrue: [valueList at: answer ifAbsent: [nil]]
+ ifFalse: [nil]]].
- ^ valueList at: (valueList indexOf: answer)].
 
  ^ valueList first!