mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-140542 Forward navigation to already navigated items (ctrl + alt + right )) seems to be broken
This commit is contained in:
+15
-1
@@ -25,7 +25,10 @@ import com.intellij.openapi.editor.colors.EditorColorsScheme;
|
||||
import com.intellij.openapi.editor.impl.DocumentMarkupModel;
|
||||
import com.intellij.openapi.editor.impl.EditorImpl;
|
||||
import com.intellij.openapi.editor.markup.*;
|
||||
import com.intellij.openapi.fileEditor.FileEditor;
|
||||
import com.intellij.openapi.fileEditor.FileEditorManager;
|
||||
import com.intellij.openapi.fileEditor.OpenFileDescriptor;
|
||||
import com.intellij.openapi.fileEditor.TextEditor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Key;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
@@ -166,7 +169,18 @@ public class ExecutionPointHighlighter {
|
||||
if (!navigate && myOpenFileDescriptor != null) {
|
||||
fileDescriptor = new OpenFileDescriptor(myProject, myOpenFileDescriptor.getFile());
|
||||
}
|
||||
myEditor = fileDescriptor == null ? null : XDebuggerUtilImpl.createEditor(fileDescriptor);
|
||||
myEditor = null;
|
||||
if (fileDescriptor != null) {
|
||||
if (!navigate) {
|
||||
FileEditor editor = FileEditorManager.getInstance(fileDescriptor.getProject()).getSelectedEditor(fileDescriptor.getFile());
|
||||
if (editor instanceof TextEditor) {
|
||||
myEditor = ((TextEditor)editor).getEditor();
|
||||
}
|
||||
}
|
||||
if (myEditor == null) {
|
||||
myEditor = XDebuggerUtilImpl.createEditor(fileDescriptor);
|
||||
}
|
||||
}
|
||||
if (myEditor != null) {
|
||||
addHighlighter();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user