<b>==================== Summary ====================</b><br>
<br>
Change Set:        decoupleShout<br>
Date:            2 November 2021<br>
Author:            Christoph Thiede<br>
<br>
This changeset complements the refactoring from System-mt.1240 intended to decouple the base system from Shout. In various places, there were still hard-coded references to SHTextStylerST80 that did not use the new TextStyler abstraction. These accesses are redirected correctly with this changeset. Furthermore, the TextStyler interface is updated to not automatically set a styler if it has been set to nil manually. This makes it possible to opt-out to styling via ShoutCore-ct.88.<br>
<br>
<b>=============== Diff ===============</b><br>
<br>
<b>PBClassPreferenceView>>initialize {initialize-release} · ct 11/1/2021 23:25 (changed)</b><br>
initialize<br>
    super initialize.<br>
<font color="#0000FF">-     styler := (Smalltalk classNamed: 'SHTextStylerST80') ifNotNil: [:s | s new].<br>
-     completionController := (Smalltalk classNamed: 'OController') ifNotNil: [:oc | oc model: self].<br>
</font><font color="#FF0000">+     styler := (TextStyler for: #Smalltalk) ifNotNil: [:s | s new].<br>
+     completionController := (Smalltalk classNamed: #OController) ifNotNil: [:oc | oc model: self].</font><br>
<br>
<b>PluggableCodePaneSpec>>stylerClass {accessing} · ct 11/1/2021 23:21 (changed)</b><br>
stylerClass<br>
<br>
<font color="#0000FF">-     ^ super stylerClass ifNil: [Smalltalk classNamed: 'SHTextStylerST80']<br>
</font><font color="#FF0000">+     ^ super stylerClass ifNil: [TextStyler for: #Smalltalk]</font><br>
<br>
<b>SmalltalkEditor>>styleSelection {do-its} · ct 11/1/2021 23:30 (changed)</b><br>
styleSelection<br>
<br>
    | styler |<br>
    self lineSelectAndEmptyCheck: [^ ''].<br>
<font color="#0000FF">-     styler := self styler ifNil: [(TextStyler for: #Smalltalk) new].<br>
</font><font color="#FF0000">+     styler := self styler ifNil: [(TextStyler for: #Smalltalk) ifNotNil: [:c | c new]].<br>
</font>    ^ styler styledTextFor: self selection<br>
<br>
<b>TextStyler class>>defaultFor: {accessing} · ct 11/1/2021 23:30 (changed)</b><br>
defaultFor: syntax<br>
<br>
<font color="#0000FF">-     ^ default<br>
-         at: syntax<br>
-         ifAbsent: [self askForDefaultFor: syntax]<br>
</font><font color="#FF0000">+     ^ self defaultOrNilFor: syntax</font><br>
<br>
<br>
<font color="#808080">---<br>
</font><i><font color="#808080">Sent from </font></i><i><u><a href="https://github.com/hpi-swa-lab/squeak-inbox-talk"><font color="#808080">Squeak Inbox Talk</font></a></u></i>