mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Removed stupid 3 seconds wait on python console launch (PY-2282)
This commit is contained in:
+12
-8
@@ -108,14 +108,7 @@ public abstract class AbstractConsoleRunnerWithHistory {
|
||||
myProcessHandler.addProcessListener(new ProcessAdapter() {
|
||||
@Override
|
||||
public void processTerminated(ProcessEvent event) {
|
||||
myRunAction.getTemplatePresentation().setEnabled(false);
|
||||
myConsoleView.getConsole().setPrompt("");
|
||||
myConsoleView.getConsole().getConsoleEditor().setRendererMode(true);
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
myConsoleView.getConsole().getConsoleEditor().getComponent().updateUI();
|
||||
}
|
||||
});
|
||||
finishConsole();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -155,6 +148,17 @@ public abstract class AbstractConsoleRunnerWithHistory {
|
||||
myProcessHandler.startNotify();
|
||||
}
|
||||
|
||||
protected void finishConsole() {
|
||||
myRunAction.getTemplatePresentation().setEnabled(false);
|
||||
myConsoleView.getConsole().setPrompt("");
|
||||
myConsoleView.getConsole().getConsoleEditor().setRendererMode(true);
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
myConsoleView.getConsole().getConsoleEditor().getComponent().updateUI();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected abstract LanguageConsoleViewImpl createConsoleView();
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user