use of com.google.idea.blaze.base.scope.output.PrintOutput in project intellij by bazelbuild.
the class IssueOutputLineProcessor method processLine.
@Override
public boolean processLine(String line) {
IssueOutput issue = blazeIssueParser.parseIssue(line);
if (issue != null) {
if (issue.getCategory() == IssueOutput.Category.ERROR) {
context.setHasError();
}
context.output(issue);
}
OutputType outputType = issue == null ? OutputType.NORMAL : OutputType.ERROR;
context.output(new PrintOutput(line, outputType));
return true;
}
use of com.google.idea.blaze.base.scope.output.PrintOutput in project intellij by bazelbuild.
the class PerformanceWarningScope method onScopeEnd.
@Override
public void onScopeEnd(BlazeContext context) {
if (outputs.isEmpty()) {
return;
}
context.output(new PrintOutput("\n===== PERFORMANCE WARNINGS =====\n"));
context.output(new PrintOutput("Your IDE isn't as fast as it could be."));
context.output(new PrintOutput("You can turn these off via Blaze > Sync > Show Performance Warnings."));
context.output(new PrintOutput(""));
for (PerformanceWarning output : outputs) {
context.output(new PrintOutput(output.text));
}
}
Aggregations