mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make "View Mode" and "Move to" menus behave as "Resize"
Makes them disabled if there is no tool window in context, see IDEA-296551. GitOrigin-RevId: 752b9f4e68f46fd5f21fa7774bc345528eac5286
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8e45c3ce3c
commit
bfc2636b4d
@@ -166,6 +166,7 @@ public final class ToolWindowMoveAction extends DumbAwareAction implements FusAw
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
ToolWindow toolWindow = getToolWindow(e);
|
||||
e.getPresentation().setVisible(toolWindow != null);
|
||||
e.getPresentation().setEnabled(toolWindow != null && !myAnchor.isApplied(toolWindow));
|
||||
}
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ public class ToolWindowViewModeAction extends DumbAwareToggleAction implements F
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
super.update(e);
|
||||
e.getPresentation().setEnabled(getToolWindow(e) != null);
|
||||
e.getPresentation().setEnabledAndVisible(getToolWindow(e) != null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user