mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disable "View -> Show Source" in editor (IDEA-90930)
This commit is contained in:
@@ -66,6 +66,11 @@ public abstract class BaseNavigateToSourceAction extends AnAction implements Dum
|
||||
|
||||
@Nullable
|
||||
private Navigatable getTarget(final DataContext dataContext) {
|
||||
if (!myFocusEditor && PlatformDataKeys.EDITOR.getData(dataContext) != null) {
|
||||
// makes no sense in editor and conflicts with another action there (ctrl+enter)
|
||||
return null;
|
||||
}
|
||||
|
||||
Navigatable[] navigatables = getNavigatables(dataContext);
|
||||
if (navigatables != null) {
|
||||
for (Navigatable navigatable : navigatables) {
|
||||
|
||||
Reference in New Issue
Block a user