#REFACTORING by cg
class: SelectionInListModelView
changed:
#selectWithoutScroll:redraw:
#wantsFocusWithPointerEnter
--- a/SelectionInListModelView.st Fri Mar 01 16:02:15 2019 +0100
+++ b/SelectionInListModelView.st Fri Mar 01 16:10:30 2019 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 1999 by eXept Software AG
All Rights Reserved
@@ -1990,17 +1992,19 @@
the mouse pointer enters"
(editorView notNil and:[editorView realized]) ifTrue:[
- ^ false
+ ^ false
].
(UserPreferences current focusFollowsMouse ~~ false
and:[(styleSheet at:#'selection.requestFocusOnPointerEnter' default:true)
]) ifTrue:[
- self size > 0 ifTrue:[
- ^ true
- ]
+ self size ~~ 0 ifTrue:[
+ ^ true
+ ]
].
^ false
+
+ "Modified: / 01-03-2019 / 16:10:12 / Claus Gittinger"
! !
!SelectionInListModelView methodsFor:'help'!
@@ -2884,7 +2888,7 @@
ifFalse:[something]
]
] ifFalse:[
- something size > 0 ifTrue:[
+ something size ~~ 0 ifTrue:[
selection := OrderedCollection new.
something do:[:each|
each isNumber ifTrue:[
@@ -2928,6 +2932,8 @@
]
].
^ true
+
+ "Modified: / 01-03-2019 / 16:10:08 / Claus Gittinger"
! !
!SelectionInListModelView class methodsFor:'documentation'!