Being notified of the replacement of a ConsoleView
Hi, I am trying to make a plugin that highlights several lines in any ConsoleView created.
I tried implementing my own com.intellij.execution.filters.Filter
and attach this to a ConsoleView in the contentSelected method of a RunContentListener using addMessageFilter method
This seems to work well, but only once.
When you execute a program again the contentRemoved method will be called on the RunContentListener with a reference to the removed ConsoleView but no reference to the ConsoleView that will replace it. ContentSelected wont be called again.
I would kind of expect something like a contentReplaced method being there. Is there some other way to get a reference to the new ConsoleView ?
Please sign in to leave a comment.
I noticed the same thing today. I filed a bug report:
http://www.jetbrains.net/jira/browse/IDEA-6375