#OTHER by exept
authorClaus Gittinger <cg@exept.de>
Fri, 30 Aug 2019 10:43:48 +0200
changeset 19069 58ee3a7b7b94
parent 19068 4cc91b4abcab
child 19070 2ffa3745f954
#OTHER by exept use allRed and allGray
Tools__MethodRewriter.st
--- a/Tools__MethodRewriter.st	Fri Aug 30 10:43:39 2019 +0200
+++ b/Tools__MethodRewriter.st	Fri Aug 30 10:43:48 2019 +0200
@@ -1060,17 +1060,20 @@
     ].
 
     rules isNil ifTrue:[
-        |knownRules separator1 separator2 separator3|
+        |knownRules separator1 separator2 separator3 veryLightRed veryLightGreen|
+
+        veryLightRed := Color red lightened lightened lightened.
+        veryLightGreen := Color green lightened lightened lightened.
 
         "/ construct a pseudo list from existing transformation rules
-        separator1 := '----------- search for:' withColor:Color grey.
-        separator2 := '----------- replace by:' withColor:Color grey.
-        separator3 := '\=================================================================================\' withCRs withColor:Color grey.
+        separator1 := '----------- search for:' allGray.
+        separator2 := '----------- replace by:' allGray.
+        separator3 := '\=================================================================================\' withCRs allGray.
 
         knownRules := OrderedCollection new.
         (RBTransformationRule allSubclasses asNewOrderedCollection sort:[:a :b | a basicNew name < b basicNew name])
         do:[:each |
-            |rule |
+            |rule|
 
             rule := each new.
             knownRules add:{ rule .
@@ -1079,10 +1082,10 @@
                                     {
                                       separator1.
                                       each searchString
-                                        asText backgroundColorizeAllWith:(Color red lightened lightened lightened) .
+                                        asText backgroundColorizeAllWith:veryLightRed .
                                       separator2.
                                       each replaceString asText
-                                        asText backgroundColorizeAllWith:(Color green lightened lightened lightened) .
+                                        asText backgroundColorizeAllWith:veryLightGreen .
                                       separator3
                                     }
                                 ]