mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix execute action.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user