[frameworks] IJPL-172990 Framework detection pop-up appears, "No frameworks are detected" upon clicking "Configure"

(cherry picked from commit 9cbfa0b87ce30685f026a7401ed385c7a2b6f635)

IJ-CR-157717

GitOrigin-RevId: f6b05246959f6e9fcae13de4d1c2e17f6977c938
This commit is contained in:
Yuriy Artamonov
2025-03-13 23:21:50 +01:00
committed by intellij-monorepo-bot
parent 6ae95331aa
commit b809011bac

View File

@@ -145,17 +145,19 @@ public final class FrameworkDetectionManager implements FrameworkDetectionIndexL
myDetectorsToProcess.clear();
}
String names = StringUtil.join(frameworkNames, ", ");
String text = ProjectBundle.message("framework.detected.info.text", names, frameworkNames.size());
NotificationGroupManager.getInstance().getNotificationGroup("Framework Detection")
.createNotification(ProjectBundle.message("notification.title.frameworks.detected"), text, NotificationType.INFORMATION)
.addAction(new NotificationAction(IdeBundle.messagePointer("action.Anonymous.text.configure")) {
@Override
public void actionPerformed(@NotNull AnActionEvent e, @NotNull Notification notification) {
showSetupFrameworksDialog(notification);
}
})
.notify(myProject);
if (!frameworkNames.isEmpty()) {
String names = StringUtil.join(frameworkNames, ", ");
String text = ProjectBundle.message("framework.detected.info.text", names, frameworkNames.size());
NotificationGroupManager.getInstance().getNotificationGroup("Framework Detection")
.createNotification(ProjectBundle.message("notification.title.frameworks.detected"), text, NotificationType.INFORMATION)
.addAction(new NotificationAction(IdeBundle.messagePointer("action.Anonymous.text.configure")) {
@Override
public void actionPerformed(@NotNull AnActionEvent e, @NotNull Notification notification) {
showSetupFrameworksDialog(notification);
}
})
.notify(myProject);
}
}
private void showSetupFrameworksDialog(Notification notification) {