public class ErrorViewStructure extends AbstractTreeStructure
Constructor and Description |
---|
ErrorViewStructure(Project project,
boolean canHideWarnings) |
Modifier and Type | Method and Description |
---|---|
void |
addFixedHotfixGroup(java.lang.String text,
java.util.List<? extends SimpleErrorData> children) |
void |
addHotfixGroup(HotfixData hotfixData,
java.util.List<? extends SimpleErrorData> children,
MutableErrorTreeView view) |
ErrorTreeElement |
addMessage(ErrorTreeElementKind kind,
java.lang.String[] text,
java.lang.Object data) |
ErrorTreeElement |
addMessage(ErrorTreeElementKind kind,
java.lang.String [] text,
VirtualFile underFileGroup,
VirtualFile file,
int line,
int column,
java.lang.Object data) |
ErrorTreeElement |
addNavigatableMessage(java.lang.String groupName,
Navigatable navigatable,
ErrorTreeElementKind kind,
java.lang.String[] message,
java.lang.Object data,
java.lang.String exportText,
java.lang.String rendererTextPrefix,
VirtualFile file) |
void |
addNavigatableMessage(java.lang.String groupName,
NavigatableMessageElement navigatableMessageElement) |
void |
clear() |
void |
commit() |
NodeDescriptor |
createDescriptor(java.lang.Object element,
NodeDescriptor parentDescriptor) |
protected GroupingElement |
createGroupingElement(java.lang.String groupName,
java.lang.Object data,
VirtualFile file) |
int |
getChildCount(GroupingElement groupingElement) |
ErrorTreeElement [] |
getChildElements(java.lang.Object element) |
ErrorTreeElement |
getFirstMessage(ErrorTreeElementKind kind) |
java.util.List<java.lang.Object> |
getGroupChildrenData(java.lang.String groupName) |
GroupingElement |
getGroupingElement(java.lang.String groupName,
java.lang.Object data,
VirtualFile file) |
java.lang.Object |
getParentElement(java.lang.Object element) |
java.lang.Object |
getRootElement() |
boolean |
hasMessages(java.util.Set<ErrorTreeElementKind> kinds) |
boolean |
hasSomethingToCommit() |
boolean |
isEmpty() |
GroupingElement |
lookupGroupingElement(java.lang.String groupName) |
java.util.List<NavigatableMessageElement> |
removeAllNavigatableMessagesInGroup(java.lang.String groupName) |
void |
removeElement(ErrorTreeElement element) |
void |
removeGroup(java.lang.String name) |
java.util.List<NavigatableMessageElement> |
removeNavigatableMessage(java.lang.String groupName,
ErrorTreeElementKind kind,
Navigatable navigatable) |
asyncCommit, asyncCommitDocuments, getLeafState, isAlwaysLeaf, isToBuildChildrenInBackground, isValid, revalidateElement
public ErrorViewStructure(Project project, boolean canHideWarnings)
public java.lang.Object getRootElement()
getRootElement
in class AbstractTreeStructure
public boolean isEmpty()
public boolean hasMessages(java.util.Set<ErrorTreeElementKind> kinds)
public ErrorTreeElement [] getChildElements(java.lang.Object element)
getChildElements
in class AbstractTreeStructure
public java.lang.Object getParentElement(java.lang.Object element)
getParentElement
in class AbstractTreeStructure
public NodeDescriptor createDescriptor(java.lang.Object element, NodeDescriptor parentDescriptor)
createDescriptor
in class AbstractTreeStructure
public final void commit()
commit
in class AbstractTreeStructure
public final boolean hasSomethingToCommit()
hasSomethingToCommit
in class AbstractTreeStructure
public ErrorTreeElement addMessage(ErrorTreeElementKind kind, java.lang.String [] text, VirtualFile underFileGroup, VirtualFile file, int line, int column, java.lang.Object data)
public java.util.List<java.lang.Object> getGroupChildrenData(java.lang.String groupName)
public void addFixedHotfixGroup(java.lang.String text, java.util.List<? extends SimpleErrorData> children)
public void addHotfixGroup(HotfixData hotfixData, java.util.List<? extends SimpleErrorData> children, MutableErrorTreeView view)
public ErrorTreeElement addMessage(ErrorTreeElementKind kind, java.lang.String[] text, java.lang.Object data)
public java.util.List<NavigatableMessageElement> removeNavigatableMessage(java.lang.String groupName, ErrorTreeElementKind kind, Navigatable navigatable)
public java.util.List<NavigatableMessageElement> removeAllNavigatableMessagesInGroup(java.lang.String groupName)
public ErrorTreeElement addNavigatableMessage(java.lang.String groupName, Navigatable navigatable, ErrorTreeElementKind kind, java.lang.String[] message, java.lang.Object data, java.lang.String exportText, java.lang.String rendererTextPrefix, VirtualFile file)
public void addNavigatableMessage(java.lang.String groupName, NavigatableMessageElement navigatableMessageElement)
public GroupingElement lookupGroupingElement(java.lang.String groupName)
public GroupingElement getGroupingElement(java.lang.String groupName, java.lang.Object data, VirtualFile file)
protected GroupingElement createGroupingElement(java.lang.String groupName, java.lang.Object data, VirtualFile file)
public int getChildCount(GroupingElement groupingElement)
public void clear()
public ErrorTreeElement getFirstMessage(ErrorTreeElementKind kind)
public void removeGroup(java.lang.String name)
public void removeElement(ErrorTreeElement element)