The Trunk: Morphic-mt.1186.mcz

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

The Trunk: Morphic-mt.1186.mcz

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

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

Name: Morphic-mt.1186
Author: mt
Time: 28 June 2016, 11:39:43.639008 am
UUID: 471c6534-59eb-c84c-8742-e4fa50706ebb
Ancestors: Morphic-mt.1185

Account for broken morphs in the Object Explorer by catching in-computable icons. (Icons for morphs are usually their own graphical representation scaled down.) Comparable to error handling in ObjectExplorerWrapper >> #asString.

Fixes a bug with columns cache invalidation in tree morphs.

=============== Diff against Morphic-mt.1185 ===============

Item was changed:
  ----- Method: ObjectExplorerWrapper>>icon (in category 'accessing') -----
  icon
  "Answer a form to be used as icon"
  ^ Preferences visualExplorer
+ ifTrue: [([self object iconOrThumbnailOfSize: 12] on: Error do: [nil])
- ifTrue: [(self object iconOrThumbnailOfSize: 12)
  ifNil: [self class showContentsInColumns
  ifTrue: [ToolIcons iconNamed: #blank]
  ifFalse: [nil]]]
  ifFalse: [nil]!

Item was changed:
  ----- Method: SimpleHierarchicalListMorph>>columns: (in category 'accessing') -----
  columns: anArray
  "You can specify columns or specs for columns. This depends on the actual morph that is used as item. ObjectExplorers produce items that support exact numbers, blocks, and nil for max width."
 
+ columns := anArray.
+ self clearColumnsCache.!
- columns := anArray!