ShowScriptMonkeyConfigurationAction showConfigurationAction = new ShowScriptMonkeyConfigurationAction();
OpenHelpAction openHelpAction = new OpenHelpAction();
AnAction commandShellActions[] = {clearEditorAction, showConfigurationAction, openHelpAction};
commandShellPanel = new ScriptShellPanel(commandProcessor, commandShellActions);
commandShellPanel.applySettings(ScriptMonkeyApplicationComponent.getInstance().getSettings());
clearEditorAction.setScriptShellPanel(commandShellPanel);
commandProcessor.processCommandLine();
commandProcessor.addGlobalVariable("window", commandShellPanel);
toolWindow.addContentPanel("JS Shell", commandShellPanel);