mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[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:
committed by
intellij-monorepo-bot
parent
6ae95331aa
commit
b809011bac
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user