make runExecuteAction not final; move ruby debugger console execution away from EDT

This commit is contained in:
Valentin Fondaratov
2014-07-01 17:36:30 +04:00
parent 69c691b3ec
commit 3b3f0ee794
@@ -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()));