use of com.intellij.ide.errorTreeView.NavigatableMessageElement in project intellij-community by JetBrains.
the class ErrorViewTextExporter method getReportText.
private void getReportText(StringBuffer buffer, final ErrorTreeElement element, boolean withUsages, final int indent) {
final String newline = SystemProperties.getLineSeparator();
Object[] children = myStructure.getChildElements(element);
for (final Object child : children) {
if (!(child instanceof ErrorTreeElement)) {
continue;
}
if (!withUsages && child instanceof NavigatableMessageElement) {
continue;
}
final ErrorTreeElement childElement = (ErrorTreeElement) child;
if (buffer.length() > 0) {
buffer.append(newline);
}
shift(buffer, indent);
exportElement(childElement, buffer, indent, newline);
getReportText(buffer, childElement, withUsages, indent + 4);
}
}
Aggregations