From 3b3f0ee7941016a65a1e3603805cd4b3a6485d22 Mon Sep 17 00:00:00 2001 From: Valentin Fondaratov Date: Tue, 1 Jul 2014 17:35:52 +0400 Subject: [PATCH] make runExecuteAction not final; move ruby debugger console execution away from EDT --- .../intellij/execution/console/ConsoleExecuteAction.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/execution/console/ConsoleExecuteAction.java b/platform/lang-impl/src/com/intellij/execution/console/ConsoleExecuteAction.java index 00c717faf9df..495a13614005 100644 --- a/platform/lang-impl/src/com/intellij/execution/console/ConsoleExecuteAction.java +++ b/platform/lang-impl/src/com/intellij/execution/console/ConsoleExecuteAction.java @@ -162,16 +162,9 @@ public class ConsoleExecuteAction extends DumbAwareAction { protected void beforeExecution(@NotNull LanguageConsoleImpl console) { } - protected boolean shouldExecute(@NotNull LanguageConsoleImpl console) { + protected void runExecuteAction(@NotNull LanguageConsoleImpl console, @Nullable LanguageConsoleView consoleView) { //noinspection deprecation beforeExecution(console); - return true; - } - - final void runExecuteAction(@NotNull LanguageConsoleImpl console, @Nullable LanguageConsoleView consoleView) { - if (!shouldExecute(console)) { - return; - } String text = console.prepareExecuteAction(myAddToHistory, myPreserveMarkup, true); ((UndoManagerImpl)UndoManager.getInstance(console.getProject())).invalidateActionsFor(DocumentReferenceManager.getInstance().create(console.getCurrentEditor().getDocument()));