Revert "Remove deprecated method"

This reverts commit 5d15a74d

GitOrigin-RevId: 74ed8f163f9cf0fa7cec16feb05947df2297723d
This commit is contained in:
Dmitry Trofimov
2019-09-17 09:31:44 +00:00
committed by intellij-monorepo-bot
parent 1e280c9e06
commit f915a3cf13
@@ -55,6 +55,7 @@ public class ColoredProcessHandler extends KillableProcessHandler implements Ans
*/
@Override
public void coloredTextAvailable(@NotNull String text, @NotNull Key attributes) {
textAvailable(text, attributes);
notifyColoredListeners(text, attributes);
}
@@ -71,4 +72,16 @@ public class ColoredProcessHandler extends KillableProcessHandler implements Ans
public void removeColoredTextListener(AnsiEscapeDecoder.ColoredTextAcceptor listener) {
myColoredTextListeners.remove(listener);
}
}
/**
* @deprecated Inheritors should override coloredTextAvailable method
* or implement {@link com.intellij.execution.process.AnsiEscapeDecoder.ColoredChunksAcceptor}
* and override method coloredChunksAvailable to process colored chunks.
* To be removed in IDEA 14.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2014")
protected void textAvailable(final String text, final Key attributes) {
super.notifyTextAvailable(text, attributes);
}
}