[Pkg] The Trunk: ToolBuilder-Morphic-cmm.213.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Apr 10 00:24:25 UTC 2018


Chris Muller uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-cmm.213.mcz

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

Name: ToolBuilder-Morphic-cmm.213
Author: cmm
Time: 9 April 2018, 7:24:08.252469 pm
UUID: e26c8ea8-2621-4752-86be-c67aeb44c4fb
Ancestors: ToolBuilder-Morphic-cmm.212

Fix.

=============== Diff against ToolBuilder-Morphic-cmm.212 ===============

Item was changed:
  ----- Method: FileSaverDialog>>selectFilename: (in category 'filename') -----
  selectFilename: aText 
  	"The user has entered a potential filename in the text field.  Check it against the current pattern; if it is ok we can accept it and then if it is a file in the current list, highlight it.  If it would not match the pattern, alert the user."
  	fileName := aText asString.
  	^ self selectExistingFilename
  		ifTrue:
  			[ self changed: #fileListIndex.
  			true ]
  		ifFalse:
  			[ suffixList size = 1
  				ifTrue:
  					[ | suffix |
  					((suffix := '.' , suffixList anyOne)
+ 						compare: (fileName last: (suffix size min: fileName size))
- 						compare: (fileName last: suffix size)
  						caseSensitive: FileDirectory default isCaseSensitive) = 2 ifFalse: [ fileName := fileName , suffix ].
  					true ]
  				ifFalse:
  					[ suffixList
  						at:
  							(UIManager default
  								chooseFrom: suffixList
  								title: 'Please choose the type of file to save.')
  						ifPresent:
  							[ : choice | fileName := fileName , '.' , choice.
  							true ]
  						ifAbsent:
  							[ suffixList isEmpty or:
  								[ UIManager default inform: 'WARNING:  File not saved!!  A filename matching one of ' , patternList asArray asString , ' patterns is required.'.
  								false ] ] ] ]!



More information about the Packages mailing list