use of com.google.jstestdriver.idea.server.JstdServerOutputListener in project intellij-plugins by JetBrains.
the class JstdServerConsoleTab method attachToServer.
public void attachToServer(@NotNull JstdServer server) {
myStatusView.attachToServer(server);
myConsoleView.clear();
server.addOutputListener(new JstdServerOutputListener() {
@Override
public void onOutputAvailable(@NotNull String text, @NotNull Key outputType) {
ConsoleViewContentType contentType = ConsoleViewContentType.getConsoleViewType(outputType);
myConsoleView.print(text, contentType);
}
@Override
public void onEvent(@NotNull JsonObject obj) {
}
});
}
Aggregations