From d30b192865c6c9efb80a08f60fc131f49ff791e0 Mon Sep 17 00:00:00 2001 From: Kirill Kalishev Date: Tue, 29 Mar 2011 15:45:42 +0400 Subject: [PATCH] IDEA-67169 high memory usage after closing all projects - removed unnecessary mouse motion listener + changed hint type --- .../intellij/codeInsight/navigation/CtrlMouseHandler.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/navigation/CtrlMouseHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/navigation/CtrlMouseHandler.java index 296d7cfd55c4..c61716b16ac4 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/navigation/CtrlMouseHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/navigation/CtrlMouseHandler.java @@ -541,15 +541,10 @@ public class CtrlMouseHandler extends AbstractProjectComponent { JComponent label = HintUtil.createInformationLabel(text); final LightweightHint hint = new LightweightHint(label); final HintManagerImpl hintManager = HintManagerImpl.getInstanceImpl(); - label.addMouseMotionListener(new MouseMotionAdapter() { - public void mouseMoved(MouseEvent e) { - hintManager.hideAllHints(); - } - }); Point p = HintManagerImpl.getHintPosition(hint, myEditor, myPosition, HintManager.ABOVE); hintManager.showEditorHint(hint, myEditor, p, HintManager.HIDE_BY_ANY_KEY | HintManager.HIDE_BY_TEXT_CHANGE | HintManager.HIDE_BY_SCROLLING, - 0, false); + 0, false, HintManagerImpl.createHintHint(myEditor, p, hint, HintManager.ABOVE).setContentActive(false)); } }