mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-133443 concurrency issue during TraverseUI application execution
This commit is contained in:
@@ -90,9 +90,7 @@ public class IdeaApplication {
|
||||
boolean isUnitTest = Boolean.getBoolean(IDEA_IS_UNIT_TEST);
|
||||
|
||||
boolean headless = Main.isHeadless();
|
||||
if (!headless) {
|
||||
patchSystem();
|
||||
}
|
||||
patchSystem(headless);
|
||||
|
||||
if (Main.isCommandLine()) {
|
||||
if (CommandLineApplication.ourInstance == null) {
|
||||
@@ -126,10 +124,12 @@ public class IdeaApplication {
|
||||
myStarter.premain(args);
|
||||
}
|
||||
|
||||
private static void patchSystem() {
|
||||
private static void patchSystem(boolean headless) {
|
||||
System.setProperty("sun.awt.noerasebackground", "true");
|
||||
|
||||
IdeEventQueue.getInstance(); // replace system event queue
|
||||
|
||||
if (headless) return;
|
||||
|
||||
if (Patches.SUN_BUG_ID_6209673) {
|
||||
RepaintManager.setCurrentManager(new IdeRepaintManager());
|
||||
|
||||
Reference in New Issue
Block a user