#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Fri, 17 Feb 2017 08:44:17 +0100
changeset 3406 a5efdd192b3e
parent 3405 02c67d9a5e65
child 3407 2e0024e012e9
#REFACTORING by cg class: DataSetBuilder changed: #hasSelection #labelFromColumn: use notEmpty instead of size > 0
DataSetBuilder.st
--- a/DataSetBuilder.st	Thu Feb 16 12:39:40 2017 +0100
+++ b/DataSetBuilder.st	Fri Feb 17 08:44:17 2017 +0100
@@ -2989,7 +2989,9 @@
 
 hasSelection
     ^ (selectedColumnIndex isCollection not and:[ selectedColumnIndex ~~ 0 ])
-    or:[ selectedColumnIndex size > 0 ]
+    or:[ selectedColumnIndex notEmptyOrNil ]
+
+    "Modified: / 17-02-2017 / 08:35:26 / cg"
 !
 
 isColumnSelected
@@ -4181,13 +4183,15 @@
     ].
     label := aColumn label.
     label isNil ifTrue:[^ nil].
-
     label isString ifTrue:[^ label].
 
-    label size > 0 ifTrue:[
+    "/ is a collection of things?
+    label notEmpty ifTrue:[
          label := label at:1.
     ].
     ^ label printString
+
+    "Modified (comment): / 17-02-2017 / 08:36:27 / cg"
 !
 
 labelInPreviewPressed:anIndex