Search in sources :

Example 1 with ErrorViewStructure

use of com.intellij.ide.errorTreeView.ErrorViewStructure in project intellij-community by JetBrains.

the class ProblemsViewImpl method addMessage.

@Override
public void addMessage(final int type, @NotNull final String[] text, @Nullable final String groupName, @Nullable final Navigatable navigatable, @Nullable final String exportTextPrefix, @Nullable final String rendererTextPrefix, @Nullable final UUID sessionId) {
    myViewUpdater.execute(() -> {
        final ErrorViewStructure structure = myPanel.getErrorViewStructure();
        final GroupingElement group = structure.lookupGroupingElement(groupName);
        if (group != null && sessionId != null && !sessionId.equals(group.getData())) {
            structure.removeElement(group);
        }
        if (navigatable != null) {
            myPanel.addMessage(type, text, groupName, navigatable, exportTextPrefix, rendererTextPrefix, sessionId);
        } else {
            myPanel.addMessage(type, text, null, -1, -1, sessionId);
        }
        updateIcon();
    });
}
Also used : GroupingElement(com.intellij.ide.errorTreeView.GroupingElement) ErrorViewStructure(com.intellij.ide.errorTreeView.ErrorViewStructure)

Aggregations

ErrorViewStructure (com.intellij.ide.errorTreeView.ErrorViewStructure)1 GroupingElement (com.intellij.ide.errorTreeView.GroupingElement)1