Removed stupid 3 seconds wait on python console launch (PY-2282)

This commit is contained in:
Dmitry Trofimov
2011-02-15 22:06:51 +03:00
parent 297c6c8381
commit 369b50fa62
@@ -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