tools/JavaAbstractSourceHighlighter.st
changeset 3789 957010ea4ec1
parent 3335 acdda45271f7
equal deleted inserted replaced
3788:f3e69321789b 3789:957010ea4ec1
   123 !
   123 !
   124 
   124 
   125 formatMethod:mth source:source in:class using: prefs elementsInto: els
   125 formatMethod:mth source:source in:class using: prefs elementsInto: els
   126 
   126 
   127     preferences := prefs.
   127     preferences := prefs.
       
   128     preferences isNil ifTrue:[
       
   129         "/ The `...codeViewThene ? UserPreferences current` trick below is 
       
   130         "/ there to make this code working with both old and editor-thene-aware 
       
   131         "/ code. Will wanish as soon as editor thene support will be
       
   132         "/ integrated.
       
   133         preferences := UserPreferences current codeViewTheme ? UserPreferences current.
       
   134     ].  
   128     sourceIndex := els.
   135     sourceIndex := els.
   129     ^self formatMethod:mth source:source in:class using: prefs
   136     ^self formatMethod:mth source:source in:class using: prefs
   130 
   137 
   131     "Created: / 04-08-2011 / 23:42:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   138     "Created: / 04-08-2011 / 23:42:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   139     "Modified: / 05-12-2017 / 21:17:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   132 !
   140 !
   133 
   141 
   134 formatMethod:mthd source:newCode line: line number: lnr in:cls using:syntaxPreferences
   142 formatMethod:mthd source:newCode line: line number: lnr in:cls using:syntaxPreferences
   135     ^ self subclassResponsibility
   143     ^ self subclassResponsibility
   136 
   144