[Pkg] The Trunk: Tools-tfel.709.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jul 28 08:20:15 UTC 2016


Tim Felgentreff uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-tfel.709.mcz

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

Name: Tools-tfel.709
Author: tfel
Time: 28 July 2016, 10:19:54.053676 am
UUID: 14f22a50-0418-2c43-9139-d5b28a9b9ea9
Ancestors: Tools-mt.708

Fix a small bug in FileList2. FileList>>itemsForFile: now needs a fully qualified path

=============== Diff against Tools-mt.708 ===============

Item was changed:
  ----- Method: FileList2 class>>endingSpecs (in category 'blue ui') -----
  endingSpecs
  	"Answer a collection of specs to build the selective 'find anything' tool called by the Navigator. This version uses the services registry to do so."
  	"FileList2 morphicViewGeneralLoaderInWorld: World"
  	| categories specs rejects |
  	rejects := #(addFileToNewZip: compressFile: openInZipViewer: extractAllFrom: openOn:).
  	categories := #(
  		('Art' ('bmp' 'gif' 'jpg' 'jpeg' 'form' 'png' 'pcx' 'xbm' 'xpm' 'ppm' 'pbm'))
  		('Morphs' ('morph' 'morphs' 'sp'))
  		('Projects' ('extseg' 'project' 'pr'))
  		('MIDI' ('mid' 'midi'))
  		('Music' ('mp3'))
  		('Movies' ('movie' 'mpg' 'mpeg' 'qt' 'mov'))
  		('Flash' ('swf'))
  	).
  
  		"('Books' ('bo'))"
  		"('Code' ('st' 'cs'))"
  		"('TrueType' ('ttf'))"
  		"('3ds' ('3ds'))"
  		"('Tape' ('tape'))"
  		"('Wonderland' ('wrl'))"
  		"('HTML' ('htm' 'html'))"
  
  	categories first at: 2 put: ImageReadWriter allTypicalFileExtensions.
  	specs := OrderedCollection new.
  	categories do: [ :cat | | catSpecs catServices okExtensions services |
  		services := Dictionary new.
  		catSpecs := Array new: 3.
  		catServices := OrderedCollection new.
  		okExtensions := Set new.
  
+ 		cat second do: [ :ext | (FileList itemsForFile: (FileDirectory default fullPathFor: ('fred.',ext))) do: [ :i |
- 		cat second do: [ :ext | (FileList itemsForFile: 'fred.',ext) do: [ :i |
  			(rejects includes: i selector) ifFalse: [
  				okExtensions add: ext.
  				services at: i label put: i ]]].
  		services do: [ :svc | catServices add: svc ].
  		services isEmpty ifFalse: [ 
  			catSpecs at: 1 put: cat first;
  				at: 2 put: okExtensions;
  				at: 3 put: catServices.
  			specs add: catSpecs ]
  	].
  	^specs
  !



More information about the Packages mailing list