IDEA-66955

This commit is contained in:
andrey.zaytsev
2011-03-25 04:23:33 +03:00
parent fe7b1d3f5b
commit 61d96927db
2 changed files with 3 additions and 2 deletions
@@ -47,6 +47,7 @@ import com.intellij.openapi.fileEditor.ex.IdeDocumentHistory;
import com.intellij.openapi.keymap.KeymapUtil;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;
import com.intellij.openapi.util.JDOMUtil;
import com.intellij.openapi.util.Key;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.TextRange;
@@ -699,7 +700,7 @@ public class FindUtil {
};
editor.getCaretModel().addCaretListener(listener);
}
JComponent component = HintUtil.createInformationLabel(message);
JComponent component = HintUtil.createInformationLabel(JDOMUtil.escapeText(message, false, false));
final LightweightHint hint = new LightweightHint(component);
HintManagerImpl.getInstanceImpl().showEditorHint(hint, editor, HintManager.UNDER,
HintManager.HIDE_BY_ANY_KEY | HintManager.HIDE_BY_TEXT_CHANGE | HintManager.HIDE_BY_SCROLLING,
@@ -48,7 +48,7 @@ public class HintUtil {
HintHint hintHint = new HintHint().setTextBg(INFORMATION_COLOR).setTextFg(Color.black).setFont(getBoldFont()).setAwtTooltip(true);
HintLabel label = new HintLabel();
label.setText(JDOMUtil.escapeText(text, false, false), hintHint);
label.setText(text, hintHint);
label.setIcon(INFORMATION_ICON);
if (!hintHint.isAwtTooltip()) {