mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[jps-cache] Fix showing notification in wrong frame
GitOrigin-RevId: f18bc014bf8dc6582fb686d9527a8f318533eeb3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8f1e02e01c
commit
8d5e953d8e
+4
-4
@@ -99,7 +99,7 @@ public class JpsOutputLoaderManager {
|
||||
notification.expire();
|
||||
load(false);
|
||||
}));
|
||||
Notifications.Bus.notify(notification);
|
||||
Notifications.Bus.notify(notification, myProject);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -225,7 +225,7 @@ public class JpsOutputLoaderManager {
|
||||
String message = "Update compiler caches completed successfully in " + endTime + " s";
|
||||
Notification notification = NONE_NOTIFICATION_GROUP.createNotification("Compiler Caches Loader", message,
|
||||
NotificationType.INFORMATION, null);
|
||||
Notifications.Bus.notify(notification);
|
||||
Notifications.Bus.notify(notification, myProject);
|
||||
});
|
||||
LOG.info("Loading finished");
|
||||
}
|
||||
@@ -262,11 +262,11 @@ public class JpsOutputLoaderManager {
|
||||
return (Runtime.getRuntime().availableProcessors() / 2) > 3 ? 3 : 1;
|
||||
}
|
||||
|
||||
private static void onFail() {
|
||||
private void onFail() {
|
||||
ApplicationManager.getApplication().invokeLater(() -> {
|
||||
Notification notification = NONE_NOTIFICATION_GROUP.createNotification("Compiler Caches Loader", "Update compiler caches failed",
|
||||
NotificationType.WARNING, null);
|
||||
Notifications.Bus.notify(notification);
|
||||
Notifications.Bus.notify(notification, myProject);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user