mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
skip excluded nodes during prev/next occurrence navigation
This commit is contained in:
@@ -218,6 +218,9 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren
|
||||
@Override
|
||||
@Nullable
|
||||
protected Navigatable createDescriptorForNode(DefaultMutableTreeNode node) {
|
||||
if (node instanceof InspectionTreeNode && ((InspectionTreeNode)node).isResolved()) {
|
||||
return null;
|
||||
}
|
||||
if (node instanceof RefElementNode) {
|
||||
final RefElementNode refNode = (RefElementNode)node;
|
||||
if (refNode.hasDescriptorsUnder()) return null;
|
||||
|
||||
@@ -1377,6 +1377,7 @@ public class UsageViewImpl implements UsageView, UsageModelTracker.UsageModelTra
|
||||
@Override
|
||||
protected Navigatable createDescriptorForNode(DefaultMutableTreeNode node) {
|
||||
if (node.getChildCount() > 0) return null;
|
||||
if (node instanceof Node && ((Node)node).isExcluded()) return null;
|
||||
return getNavigatableForNode(node);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user