hide debugger error tooltips on scrolling clion/142.2676
authorEgor.Ushakov <egor.ushakov@jetbrains.com>
Mon, 22 Jun 2015 16:18:38 +0000 (19:18 +0300)
committerEgor.Ushakov <egor.ushakov@jetbrains.com>
Mon, 22 Jun 2015 16:20:07 +0000 (19:20 +0300)
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/evaluate/quick/XValueHint.java

index f7c46bf1050328c5f468ee3149f3c487901f2420..5217334c7346d608c589d9d968ebe411cce0890a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2014 JetBrains s.r.o.
+ * Copyright 2000-2015 JetBrains s.r.o.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -184,12 +184,13 @@ public class XValueHint extends AbstractValueHint {
               SimpleColoredComponent component = HintUtil.createInformationComponent();
               text.appendToComponent(component);
               if (myFullValueEvaluator != null) {
-                component.append(myFullValueEvaluator.getLinkText(), XDebuggerTreeNodeHyperlink.TEXT_ATTRIBUTES, new Consumer<MouseEvent>() {
-                  @Override
-                  public void consume(MouseEvent event) {
-                    DebuggerUIUtil.showValuePopup(myFullValueEvaluator, event, getProject(), getEditor());
-                  }
-                });
+                component.append(myFullValueEvaluator.getLinkText(), XDebuggerTreeNodeHyperlink.TEXT_ATTRIBUTES,
+                                 new Consumer<MouseEvent>() {
+                                   @Override
+                                   public void consume(MouseEvent event) {
+                                     DebuggerUIUtil.showValuePopup(myFullValueEvaluator, event, getProject(), getEditor());
+                                   }
+                                 });
                 LinkMouseListenerBase.installSingleTagOn(component);
               }
               showHint(component);
@@ -240,7 +241,9 @@ public class XValueHint extends AbstractValueHint {
             }
             HintManager.getInstance().showErrorHint(getEditor(), errorMessage, start,
                                                     end, HintManager.ABOVE,
-                                                    HintManager.HIDE_BY_ESCAPE | HintManager.HIDE_BY_TEXT_CHANGE,
+                                                    HintManager.HIDE_BY_ESCAPE
+                                                    | HintManager.HIDE_BY_TEXT_CHANGE
+                                                    | HintManager.HIDE_BY_SCROLLING,
                                                     0);
           }
         });