提交 42258cc4 编写于 作者: N Nikita Akilov

#9688 fix link with editor behavior when there is no sql editor opened

上级 978e794d
......@@ -36,6 +36,7 @@ import org.jkiss.dbeaver.model.struct.DBSObject;
import org.jkiss.dbeaver.ui.UIUtils;
import org.jkiss.dbeaver.ui.editors.EditorUtils;
import org.jkiss.dbeaver.ui.editors.IDatabaseEditorInput;
import org.jkiss.dbeaver.ui.editors.text.BaseTextEditor;
import org.jkiss.dbeaver.ui.navigator.NavigatorUtils;
import org.jkiss.dbeaver.ui.navigator.database.NavigatorViewBase;
import org.jkiss.dbeaver.ui.navigator.project.ProjectExplorerView;
......@@ -55,7 +56,8 @@ public class NavigatorHandlerLinkEditor extends AbstractHandler {
return null;
}
if (navigatorView instanceof ProjectExplorerView || navigatorView instanceof ProjectNavigatorView) {
if (navigatorView instanceof ProjectExplorerView ||
(navigatorView instanceof ProjectNavigatorView && activeEditor instanceof BaseTextEditor)) {
IFile file = EditorUtils.getFileFromInput(activeEditor.getEditorInput());
if (file != null) {
showResourceInNavigator(navigatorView, file);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册