mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
navigation to class fixed if file not opened (IDEADEV-41617 re-fixed)
This commit is contained in:
@@ -161,7 +161,6 @@ public final class NavigationUtil {
|
||||
final FileEditorManager fem = FileEditorManager.getInstance(elt.getProject());
|
||||
if (!fem.isFileOpen(vFile)) {
|
||||
fem.openFile(vFile, true, searchForOpen);
|
||||
return true;
|
||||
}
|
||||
|
||||
final TextRange range = elt.getTextRange();
|
||||
@@ -173,7 +172,8 @@ public final class NavigationUtil {
|
||||
final Editor text = ((TextEditor)editor).getEditor();
|
||||
final int offset = text.getCaretModel().getOffset();
|
||||
|
||||
if (range.contains(offset)) {
|
||||
if (range.containsOffset(offset)) {
|
||||
// select the file
|
||||
fem.openFile(vFile, true, searchForOpen);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user