diff --git a/platform/lang-impl/src/com/intellij/ide/projectView/impl/ProjectViewImpl.java b/platform/lang-impl/src/com/intellij/ide/projectView/impl/ProjectViewImpl.java index aa18eb08c52b..2ccd68f88d6c 100644 --- a/platform/lang-impl/src/com/intellij/ide/projectView/impl/ProjectViewImpl.java +++ b/platform/lang-impl/src/com/intellij/ide/projectView/impl/ProjectViewImpl.java @@ -1830,7 +1830,7 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo super.update(e); final Presentation presentation = e.getPresentation(); AbstractProjectViewPane pane = getCurrentProjectViewPane(); - presentation.setVisible(pane != null && pane.supportsManualOrder()); + presentation.setEnabledAndVisible(pane != null && pane.supportsManualOrder()); } } @@ -1876,7 +1876,7 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo public void update(final AnActionEvent e) { super.update(e); final Presentation presentation = e.getPresentation(); - presentation.setVisible(getCurrentProjectViewPane() != null); + presentation.setEnabledAndVisible(getCurrentProjectViewPane() != null); } } diff --git a/platform/lang-impl/src/com/intellij/ide/projectView/impl/ProjectViewPane.java b/platform/lang-impl/src/com/intellij/ide/projectView/impl/ProjectViewPane.java index bc2e509e085a..788a6d48366f 100644 --- a/platform/lang-impl/src/com/intellij/ide/projectView/impl/ProjectViewPane.java +++ b/platform/lang-impl/src/com/intellij/ide/projectView/impl/ProjectViewPane.java @@ -214,7 +214,7 @@ public class ProjectViewPane extends AbstractProjectViewPSIPane { super.update(e); final Presentation presentation = e.getPresentation(); final ProjectView projectView = ProjectView.getInstance(myProject); - presentation.setVisible(projectView.getCurrentProjectViewPane() == ProjectViewPane.this); + presentation.setEnabledAndVisible(projectView.getCurrentProjectViewPane() == ProjectViewPane.this); } } }