mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] IDEA-352617 AcceptedLanguageLevelsSettings requests service from class init
GitOrigin-RevId: 073d47504156d96f01e1068d0123d897ae202625
This commit is contained in:
committed by
intellij-monorepo-bot
parent
66bdcd58fe
commit
7701d9f017
@@ -41,8 +41,9 @@ import java.util.TreeSet;
|
||||
category = SettingsCategory.CODE
|
||||
)
|
||||
public final class AcceptedLanguageLevelsSettings implements PersistentStateComponent<AcceptedLanguageLevelsSettings> {
|
||||
private static final NotificationGroup NOTIFICATION_GROUP =
|
||||
NotificationGroupManager.getInstance().getNotificationGroup("Accepted language levels");
|
||||
private static NotificationGroup getAcceptedLanguageNotificationGroup() {
|
||||
return NotificationGroupManager.getInstance().getNotificationGroup("Accepted language levels");
|
||||
}
|
||||
|
||||
private static NotificationGroup getNotificationGroup() {
|
||||
return NotificationGroupManager.getInstance().getNotificationGroup("Java Preview Features");
|
||||
@@ -125,7 +126,7 @@ public final class AcceptedLanguageLevelsSettings implements PersistentStateComp
|
||||
}
|
||||
|
||||
private static void showNotificationToAccept(@NotNull Project project, MultiMap<LanguageLevel, Module> unacceptedLevels, LanguageLevel level) {
|
||||
NOTIFICATION_GROUP.createNotification(
|
||||
getAcceptedLanguageNotificationGroup().createNotification(
|
||||
JavaBundle.message("java.preview.features.alert.title"),
|
||||
JavaBundle.message("java.preview.features.legal.notice", level.getPresentableText(), "<br/><br/><a href='accept'>" +
|
||||
JavaBundle.message(
|
||||
|
||||
Reference in New Issue
Block a user