mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Formatting
GitOrigin-RevId: 5ad43857ca856ba75773d5451f06cc7d9df346e5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2ada13db18
commit
cd5f9b2822
+25
-25
@@ -43,35 +43,35 @@ public class MvcProjectWithoutLibraryNotificator implements StartupActivity.Dumb
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) return;
|
||||
|
||||
ReadAction.nonBlocking(() -> {
|
||||
final Pair<Module, MvcFramework> pair = findModuleWithoutLibrary(project);
|
||||
if (pair == null) return;
|
||||
final Pair<Module, MvcFramework> pair = findModuleWithoutLibrary(project);
|
||||
if (pair == null) return;
|
||||
|
||||
final MvcFramework framework = pair.second;
|
||||
final Module module = pair.first;
|
||||
final String name = framework.getFrameworkName();
|
||||
final Map<String, Runnable> actions = framework.createConfigureActions(module);
|
||||
final MvcFramework framework = pair.second;
|
||||
final Module module = pair.first;
|
||||
final String name = framework.getFrameworkName();
|
||||
final Map<String, Runnable> actions = framework.createConfigureActions(module);
|
||||
|
||||
final StringBuilder content = new StringBuilder()
|
||||
.append("<html><body>")
|
||||
.append("Module ").append('\'').append(module.getName()).append('\'')
|
||||
.append(" has no ").append(name).append(" SDK.");
|
||||
if (!actions.isEmpty()) content.append("<br/>");
|
||||
content.append(StringUtil.join(actions.keySet(), actionName -> String.format("<a href='%s'>%s</a>", actionName, actionName), " "));
|
||||
content.append("</body></html>");
|
||||
final StringBuilder content = new StringBuilder()
|
||||
.append("<html><body>")
|
||||
.append("Module ").append('\'').append(module.getName()).append('\'')
|
||||
.append(" has no ").append(name).append(" SDK.");
|
||||
if (!actions.isEmpty()) content.append("<br/>");
|
||||
content.append(StringUtil.join(actions.keySet(), actionName -> String.format("<a href='%s'>%s</a>", actionName, actionName), " "));
|
||||
content.append("</body></html>");
|
||||
|
||||
new Notification(
|
||||
name + ".Configure", name + " SDK not found", content.toString(), NotificationType.INFORMATION,
|
||||
new NotificationListener.Adapter() {
|
||||
@Override
|
||||
protected void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent e) {
|
||||
if (module.isDisposed()) return;
|
||||
final Runnable runnable = actions.get(e.getDescription());
|
||||
assert runnable != null;
|
||||
runnable.run();
|
||||
}
|
||||
new Notification(
|
||||
name + ".Configure", name + " SDK not found", content.toString(), NotificationType.INFORMATION,
|
||||
new NotificationListener.Adapter() {
|
||||
@Override
|
||||
protected void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent e) {
|
||||
if (module.isDisposed()) return;
|
||||
final Runnable runnable = actions.get(e.getDescription());
|
||||
assert runnable != null;
|
||||
runnable.run();
|
||||
}
|
||||
).notify(project);
|
||||
}).inSmartMode(project).submit(AppExecutorUtil.getAppExecutorService());
|
||||
}
|
||||
).notify(project);
|
||||
}).inSmartMode(project).submit(AppExecutorUtil.getAppExecutorService());
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user