WI-14476 When hovering over variable, Expression Evaluation tooltip disappears before I can click the + icon (cherry picked from commit 3034e98)

This commit is contained in:
Svetlana.Zemlyanskay
2013-11-07 16:30:17 +04:00
parent 202e2ae646
commit fe27876222
4 changed files with 41 additions and 5 deletions
@@ -15,7 +15,6 @@
*/
package com.intellij.debugger.ui;
import com.intellij.codeInsight.daemon.impl.DaemonListeners;
import com.intellij.debugger.DebuggerBundle;
import com.intellij.debugger.DebuggerInvocationUtil;
import com.intellij.debugger.SourcePosition;
@@ -131,9 +130,9 @@ public class PositionHighlighter {
private static void adjustCounter(@NotNull Editor editor, int increment) {
JComponent component = editor.getComponent();
Object o = component.getClientProperty(DaemonListeners.IGNORE_MOUSE_TRACKING);
Object o = component.getClientProperty(Editor.IGNORE_MOUSE_TRACKING);
Integer value = ((o instanceof Integer) ? (Integer)o : 0) + increment;
component.putClientProperty(DaemonListeners.IGNORE_MOUSE_TRACKING, value > 0 ? value : null);
component.putClientProperty(Editor.IGNORE_MOUSE_TRACKING, value > 0 ? value : null);
}
public void remove() {