#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Tue, 03 Dec 2019 22:28:30 +0100
changeset 19333 e2b7b1048131
parent 19332 5d98903bd2f8
child 19334 a618c46ef0f2
#BUGFIX by cg care for disabled services class: Tools::CodeView2 changed: #updateScrollersViewBackground class: Tools::CodeView2::GutterView changed: #helpTextAt:
Tools__CodeView2.st
--- a/Tools__CodeView2.st	Tue Dec 03 22:27:47 2019 +0100
+++ b/Tools__CodeView2.st	Tue Dec 03 22:28:30 2019 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
               All Rights Reserved
@@ -1195,10 +1193,12 @@
     allAnnotations := OrderedCollection new.
     allBreakpoints := OrderedCollection new.
     services do:[:eachService |
-        allAnnotations addAll:(eachService annotations ? #()).
-        eachService isBreakpointService ifTrue:[
-            allBreakpoints addAll:(eachService breakpoints ? #()).
-        ].    
+        eachService enabled ifTrue:[
+            allAnnotations addAll:(eachService annotations ? #()).
+            eachService isBreakpointService ifTrue:[
+                allBreakpoints addAll:(eachService breakpoints ? #()).
+            ].
+        ]
     ].
 
     verticalScrollBar := textViewScroller verticalScrollBar.
@@ -3064,12 +3064,14 @@
                 
     services do:[:eachService |
         |tooltip|
-        
-        tooltip := eachService helpTextAtLine:lineNr.
-        tooltip notEmptyOrNil ifTrue:[
-            textCollector notEmpty ifTrue:[ textCollector cr].
-            textCollector nextPutAllText:tooltip withCRs.
-            tooltip last == Character cr ifFalse:[textCollector cr].
+
+        eachService enabled ifTrue:[
+            tooltip := eachService helpTextAtLine:lineNr.
+            tooltip notEmptyOrNil ifTrue:[
+                textCollector notEmpty ifTrue:[ textCollector cr].
+                textCollector nextPutAllText:tooltip withCRs.
+                tooltip last == Character cr ifFalse:[textCollector cr].
+            ].
         ].
     ].
     textCollector isEmpty ifTrue:[ ^ nil ].