The Trunk: ToolBuilder-Kernel-mt.99.mcz

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

The Trunk: ToolBuilder-Kernel-mt.99.mcz

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

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

Name: ToolBuilder-Kernel-mt.99
Author: mt
Time: 21 July 2016, 11:40:05.619126 am
UUID: f0170bb7-1cf2-614f-887e-499ef591d517
Ancestors: ToolBuilder-Kernel-mt.98

Add a way to choose-or-add via the UI manager.

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

Item was added:
+ ----- Method: UIManager>>chooseFromOrAddTo:lines:title: (in category 'ui requests') -----
+ chooseFromOrAddTo: aList lines: linesArray title: aString
+
+ | index |
+ index := (UIManager default chooseFrom: {'new...'}, aList lines: linesArray title: aString).
+ index = 0 ifTrue: [^ nil].
+
+ index = 1 ifTrue: [
+ ^ self request: 'Please type new value' initialAnswer: ''].
+
+ ^ aList at: index - 1!