mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-24803 Run current cell action should be available from editing mode
This commit is contained in:
@@ -4,7 +4,6 @@ import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.actionSystem.CustomShortcutSet;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.plugins.ipnb.editor.IpnbFileEditor;
|
||||
import org.jetbrains.plugins.ipnb.editor.panels.IpnbEditablePanel;
|
||||
import org.jetbrains.plugins.ipnb.editor.panels.IpnbFilePanel;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -29,10 +28,4 @@ public class IpnbRunCellAction extends IpnbRunCellBaseAction {
|
||||
component.executeSaveFileCommand();
|
||||
runCell(component, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
IpnbEditablePanel panel = myFileEditor.getIpnbFilePanel().getSelectedCellPanel();
|
||||
e.getPresentation().setEnabled(panel != null && !panel.isEditing());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user