mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make runExecuteAction not final; move ruby debugger console execution away from EDT
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user