ansi colors: extend ConsoleViewContentType instead of TextAttributes (http://crucible...
[idea/community.git] / platform / platform-api / src / com / intellij / execution / ui / ConsoleViewContentType.java
index c2055ac39f3dee66aefc19181a3eeb06392625fe..d70a12f65f2c4d27044b53e12f8b7f9df9719f09 100644 (file)
@@ -16,9 +16,9 @@
 package com.intellij.execution.ui;
 
 import com.intellij.execution.process.ProcessOutputTypes;
+import com.intellij.openapi.editor.colors.ColorKey;
 import com.intellij.openapi.editor.colors.EditorColorsManager;
 import com.intellij.openapi.editor.colors.TextAttributesKey;
-import com.intellij.openapi.editor.colors.ColorKey;
 import com.intellij.openapi.editor.markup.TextAttributes;
 import com.intellij.openapi.util.Key;
 import com.intellij.util.containers.HashMap;
@@ -77,6 +77,12 @@ public class ConsoleViewContentType {
     return myName;
   }
 
+  /**
+   * Returns {@code TextAttributes} instance defining the visual representation of text.
+   * <p> A subclass might override this method.
+   *
+   * @return not-null TextAttributes instance
+   */
   public TextAttributes getAttributes() {
     if (myTextAttributesKey != null) {
       return EditorColorsManager.getInstance().getGlobalScheme().getAttributes(myTextAttributesKey);