diff --git a/platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsUtil.java b/platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsUtil.java index b94fb222503b..abb84610a119 100644 --- a/platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsUtil.java +++ b/platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsUtil.java @@ -17,7 +17,9 @@ package com.intellij.notification.impl.ui; import com.intellij.notification.Notification; import com.intellij.notification.NotificationListener; +import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.ui.MessageType; +import com.intellij.openapi.util.text.StringUtil; import com.intellij.ui.ColorUtil; import com.intellij.ui.JBColor; import com.intellij.xml.util.XmlStringUtil; @@ -33,29 +35,35 @@ import java.awt.*; * @author spleaner */ public class NotificationsUtil { - - private NotificationsUtil() { - } + private static final Logger LOG = Logger.getInstance("#com.intellij.notification.impl.ui.NotificationsUtil"); + private static final int TITLE_LIMIT = 1000; + private static final int CONTENT_LIMIT = 10000; public static String buildHtml(@NotNull final Notification notification, @Nullable String style) { - String result = ""; - if (style != null) { - result += "
" + notification.getContent() + "
"; - if (style != null) { - result += "" + content + "
"; + result += "" : " color=\"" + color + "\">") + title + "" + content + "
"; if (style != null) { result += "