Fix execute action.

This commit is contained in:
Dmitry Trofimov
2014-08-25 13:32:59 +02:00
parent eaf2969ee1
commit 3aee050fe7
3 changed files with 6 additions and 5 deletions
@@ -104,13 +104,13 @@ public abstract class AbstractConsoleRunnerWithHistory<T extends LanguageConsole
myConsoleView.attachToProcess(myProcessHandler);
// Runner creating
createContentDescriptor();
createContentDescriptorAndActions();
// Run
myProcessHandler.startNotify();
}
protected void createContentDescriptor() {
protected void createContentDescriptorAndActions() {
final Executor defaultExecutor = DefaultRunExecutor.getRunExecutorInstance();
final DefaultActionGroup toolbarActions = new DefaultActionGroup();
final ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, toolbarActions, false);
@@ -128,7 +128,7 @@ public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory<PythonC
protected int[] myPorts;
private PydevConsoleCommunication myPydevConsoleCommunication;
private PyConsoleProcessHandler myProcessHandler;
private PydevConsoleExecuteActionHandler myConsoleExecuteActionHandler;
protected PydevConsoleExecuteActionHandler myConsoleExecuteActionHandler;
private List<ConsoleListener> myConsoleListeners = ContainerUtil.createLockFreeCopyOnWriteList();
private final PyConsoleType myConsoleType;
private Map<String, String> myEnvironmentVariables;
@@ -115,8 +115,9 @@ public class PythonScriptCommandLineState extends PythonCommandLineState {
}
@Override
protected void createContentDescriptor() {
//don't create
protected void createContentDescriptorAndActions() {
AnAction a = createConsoleExecAction(myConsoleExecuteActionHandler);
registerActionShortcuts(Lists.newArrayList(a), getConsoleView().getConsole().getConsoleEditor().getComponent());
}
@Override