Search in sources :

Example 6 with LocationNode

use of org.sonarlint.intellij.ui.nodes.LocationNode in project sonarlint-intellij by SonarSource.

the class AbstractIssuesPanel method flowsTreeSelectionChanged.

protected void flowsTreeSelectionChanged() {
    LocationNode[] selectedNodes = flowsTree.getSelectedNodes(LocationNode.class, null);
    if (selectedNodes.length > 0) {
        LocationNode node = selectedNodes[0];
        highlighting.highlightFlowsWithHighlightersUtil(node.rangeMarker(), node.message(), Collections.emptyList());
    }
}
Also used : LocationNode(org.sonarlint.intellij.ui.nodes.LocationNode)

Aggregations

LocationNode (org.sonarlint.intellij.ui.nodes.LocationNode)6 SummaryNode (org.sonarlint.intellij.ui.nodes.SummaryNode)3 ArrayList (java.util.ArrayList)2 LiveIssue (org.sonarlint.intellij.issue.LiveIssue)2 RangeMarker (com.intellij.openapi.editor.RangeMarker)1 OpenFileDescriptor (com.intellij.openapi.fileEditor.OpenFileDescriptor)1 PsiFile (com.intellij.psi.PsiFile)1 TreeExpansionEvent (javax.swing.event.TreeExpansionEvent)1 TreeWillExpandListener (javax.swing.event.TreeWillExpandListener)1 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)1 ExpandVetoException (javax.swing.tree.ExpandVetoException)1 TreePath (javax.swing.tree.TreePath)1 LabelNode (org.sonarlint.intellij.ui.nodes.LabelNode)1