Search in sources :

Example 1 with PrintOutput

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;
}
Also used : PrintOutput(com.google.idea.blaze.base.scope.output.PrintOutput) IssueOutput(com.google.idea.blaze.base.scope.output.IssueOutput) OutputType(com.google.idea.blaze.base.scope.output.PrintOutput.OutputType)

Example 2 with PrintOutput

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));
    }
}
Also used : PrintOutput(com.google.idea.blaze.base.scope.output.PrintOutput) PerformanceWarning(com.google.idea.blaze.base.scope.output.PerformanceWarning)

Aggregations

PrintOutput (com.google.idea.blaze.base.scope.output.PrintOutput)2 IssueOutput (com.google.idea.blaze.base.scope.output.IssueOutput)1 PerformanceWarning (com.google.idea.blaze.base.scope.output.PerformanceWarning)1 OutputType (com.google.idea.blaze.base.scope.output.PrintOutput.OutputType)1