From 0826b4a018f7acfa123fc67b4abeb573b190a421 Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Tue, 25 Feb 2014 15:22:47 +0400 Subject: [PATCH] fix can't read message for IDEA-121207 --- .../src/com/intellij/ide/util/TipUIUtil.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ide/util/TipUIUtil.java b/platform/platform-impl/src/com/intellij/ide/util/TipUIUtil.java index 0fb2bbef99e0..53e97c73fffd 100644 --- a/platform/platform-impl/src/com/intellij/ide/util/TipUIUtil.java +++ b/platform/platform-impl/src/com/intellij/ide/util/TipUIUtil.java @@ -105,10 +105,15 @@ public class TipUIUtil { } } - private static void setCantReadText(JEditorPane browser, TipAndTrickBean missingFile) { + private static void setCantReadText(JEditorPane browser, TipAndTrickBean bean) { try { - browser.read(new StringReader( - IdeBundle.message("error.unable.to.read.tip.of.the.day", missingFile, ApplicationNamesInfo.getInstance().getFullProductName())), null); + String plugin = getPoweredByText(bean); + String product = ApplicationNamesInfo.getInstance().getFullProductName(); + if (!plugin.isEmpty()) { + product += " and " + plugin + " plugin"; + } + String message = IdeBundle.message("error.unable.to.read.tip.of.the.day", bean.getFileName(), product); + browser.read(new StringReader(message), null); } catch (IOException ignored) { }