Search in sources :

Example 1 with BuildAndRestartConsoleAction

use of org.jetbrains.plugins.groovy.console.BuildAndRestartConsoleAction in project intellij-community by JetBrains.

the class GroovyShellRunnerImpl method fillToolBarActions.

@Override
protected List<AnAction> fillToolBarActions(DefaultActionGroup toolbarActions, final Executor defaultExecutor, final RunContentDescriptor contentDescriptor) {
    BuildAndRestartConsoleAction rebuildAction = new BuildAndRestartConsoleAction(myModule, getProject(), defaultExecutor, contentDescriptor, myStarter);
    toolbarActions.add(rebuildAction);
    List<AnAction> actions = super.fillToolBarActions(toolbarActions, defaultExecutor, contentDescriptor);
    actions.add(rebuildAction);
    return actions;
}
Also used : BuildAndRestartConsoleAction(org.jetbrains.plugins.groovy.console.BuildAndRestartConsoleAction) AnAction(com.intellij.openapi.actionSystem.AnAction)

Aggregations

AnAction (com.intellij.openapi.actionSystem.AnAction)1 BuildAndRestartConsoleAction (org.jetbrains.plugins.groovy.console.BuildAndRestartConsoleAction)1