fixed debug console highlighting
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Fri, 5 Nov 2010 07:41:45 +0000 (10:41 +0300)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Fri, 5 Nov 2010 07:41:45 +0000 (10:41 +0300)
platform/lang-impl/src/com/intellij/execution/impl/ConsoleViewImpl.java

index 27d31b594870b576293b30f181d405d5ce992ac0..7e67b9432520b36e174c2c229a7474cc33a30157 100644 (file)
@@ -684,7 +684,7 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
     editor.getSettings().setAllowSingleLogicalLineFolding(true); // We want to fold long soft-wrapped command lines\r
     editor.setSoftWrapAppliancePlace(SoftWrapAppliancePlaces.CONSOLE);\r
 \r
-    final EditorHighlighter highlighter = new MyHighlighter();\r
+    final EditorHighlighter highlighter = createHighlighter();\r
     editor.setHighlighter(highlighter);\r
 \r
     final EditorSettings editorSettings = editor.getSettings();\r
@@ -758,6 +758,10 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
     return editor;\r
   }\r
 \r
+  protected MyHighlighter createHighlighter() {\r
+    return new MyHighlighter();\r
+  }\r
+\r
   private void highlightUserTokens() {\r
     if (myTokens.isEmpty()) return;\r
     final TokenInfo token = myTokens.get(myTokens.size() - 1);\r