PY-19960 PY-14096 Merge right-click menu creation for toggle output and split/merge...
[idea/community.git] / python / ipnb / src / org / jetbrains / plugins / ipnb / editor / actions / IpnbHideOutputAction.java
1 package org.jetbrains.plugins.ipnb.editor.actions;
2
3 import com.intellij.openapi.actionSystem.AnAction;
4 import com.intellij.openapi.actionSystem.AnActionEvent;
5 import org.jetbrains.annotations.NotNull;
6 import org.jetbrains.plugins.ipnb.editor.panels.code.IpnbCodePanel;
7
8 public class IpnbHideOutputAction extends AnAction {
9   private IpnbCodePanel myParent;
10
11   public IpnbHideOutputAction(@NotNull IpnbCodePanel parent) {
12     super("Toggle Output Button (Double-Click)");
13     myParent = parent;
14   }
15
16   @Override
17   public void actionPerformed(AnActionEvent e) {
18     myParent.hideOutputPanel();
19   }
20 }