#UI_ENHANCEMENT by cg
authorClaus Gittinger <cg@exept.de>
Wed, 27 May 2020 17:42:07 +0200
changeset 4673 1e092670cf8f
parent 4672 07f8f6eefcb0
child 4674 3b25441744b4
#UI_ENHANCEMENT by cg class: Explainer class changed: #valueStringFor:
Explainer.st
--- a/Explainer.st	Sun May 24 11:26:33 2020 +0200
+++ b/Explainer.st	Wed May 27 17:42:07 2020 +0200
@@ -2153,12 +2153,19 @@
      or:[ valString size > 50
      or:[ valString includes:Character cr ]]) ifTrue:[
         valString := aValue classNameWithArticle.
+        (aValue class includesBehavior:Collection) ifTrue:[
+            aValue size == 0 ifTrue:[
+                valString := valString,'; empty'
+            ] ifFalse:[
+                valString := valString,('; size=%1' bindWith:aValue size)
+            ].
+        ].
     ].
 
     ^ valString
 
-    "Modified: / 14-10-2010 / 11:57:52 / cg"
     "Modified: / 08-06-2019 / 14:02:57 / Claus Gittinger"
+    "Modified: / 27-05-2020 / 17:41:25 / cg"
 ! !
 
 !Explainer class methodsFor:'naive type inferer'!