[squeak-dev] The Trunk: ToolBuilder-Kernel-mt.99.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jul 21 09:40:15 UTC 2016


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!



More information about the Squeak-dev mailing list