mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-66955
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user