disable "View -> Show Source" in editor (IDEA-90930)

This commit is contained in:
peter
2012-09-19 19:47:39 +04:00
parent 0ce16487b4
commit b797ea2b26
@@ -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) {