mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Usage view should not provide navigatable if one is not valid thus not capable to navigate.
This commit is contained in:
@@ -694,7 +694,8 @@ public class UsageViewImpl implements UsageView {
|
||||
if (node == null) return null;
|
||||
Object userObject = node.getUserObject();
|
||||
if (userObject instanceof Navigatable) {
|
||||
return (Navigatable)userObject;
|
||||
final Navigatable navigatable = (Navigatable)userObject;
|
||||
return navigatable.canNavigate() ? navigatable : null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user