diff --git a/notebooks/visualization/src/com/intellij/notebooks/visualization/NotebookBelowLastCellPanel.kt b/notebooks/visualization/src/com/intellij/notebooks/visualization/NotebookBelowLastCellPanel.kt index 723b2fb77a85..3a543b9cb10a 100644 --- a/notebooks/visualization/src/com/intellij/notebooks/visualization/NotebookBelowLastCellPanel.kt +++ b/notebooks/visualization/src/com/intellij/notebooks/visualization/NotebookBelowLastCellPanel.kt @@ -9,7 +9,6 @@ import com.intellij.openapi.actionSystem.ActionGroup import com.intellij.openapi.actionSystem.ActionManager import com.intellij.openapi.editor.impl.EditorImpl import com.intellij.util.ui.JBEmptyBorder -import org.intellij.lang.annotations.Language import java.awt.FlowLayout import java.awt.Graphics import java.awt.Graphics2D @@ -30,7 +29,7 @@ class NotebookBelowLastCellPanel( if (editor.isOrdinaryNotebookEditor()) { isOpaque = false border = HighlightableTopBorder(editor.notebookAppearance.cellBorderHeight) - val actionGroup = ActionManager.getInstance().getAction(ACTION_GROUP_ID) as ActionGroup + val actionGroup = ActionManager.getInstance().getAction("Jupyter.CreateNewCellsPanel") as ActionGroup add(JupyterAddNewCellToolbar(actionGroup, toolbarTargetComponent = this)) } } @@ -56,9 +55,4 @@ class NotebookBelowLastCellPanel( } } } - - companion object { - @Language("devkit-action-id") - private const val ACTION_GROUP_ID = "Jupyter.CreateNewCellsPanel" - } } \ No newline at end of file