IDEA-128288 Debugger hints do not expand
authorVassiliy.Kudryashov <Vassiliy.Kudryashov@jetbrains.com>
Wed, 13 Aug 2014 16:01:51 +0000 (20:01 +0400)
committerVassiliy.Kudryashov <Vassiliy.Kudryashov@jetbrains.com>
Wed, 13 Aug 2014 16:03:50 +0000 (20:03 +0400)
platform/platform-impl/src/com/intellij/openapi/wm/impl/IdeGlassPaneImpl.java

index 71f9645041020e2e4272c57085c92aa35f463a29..1613953287b6639e4a66279cfd7634d0a22c43d9 100644 (file)
@@ -24,8 +24,6 @@ import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.ui.Divider;
 import com.intellij.openapi.ui.Painter;
 import com.intellij.openapi.ui.impl.GlassPaneDialogWrapperPeer;
-import com.intellij.openapi.ui.popup.Balloon;
-import com.intellij.openapi.ui.popup.JBPopupFactory;
 import com.intellij.openapi.util.Disposer;
 import com.intellij.openapi.util.Weighted;
 import com.intellij.openapi.wm.IdeGlassPane;
@@ -287,8 +285,6 @@ public class IdeGlassPaneImpl extends JPanel implements IdeGlassPaneEx, IdeEvent
     return false;
   }
 
-  private MouseEvent myLastRedispatchedEvent = null;
-
   private boolean preprocess(final MouseEvent e, final boolean motion, JRootPane eventRootPane) {
     try {
       final MouseEvent event = convertEvent(e, eventRootPane);
@@ -297,25 +293,6 @@ public class IdeGlassPaneImpl extends JPanel implements IdeGlassPaneEx, IdeEvent
         return false;
       }
 
-      Component c = SwingUtilities.getDeepestComponentAt(e.getComponent(), e.getX(), e.getY());
-      Balloon balloon = JBPopupFactory.getInstance().getParentBalloonFor(c);
-      if (balloon != null && myLastRedispatchedEvent != e) {
-        if (e.getID() == MouseEvent.MOUSE_PRESSED
-            && IdeTooltipManager.getInstance().hasCurrent()
-            && IdeTooltipManager.getInstance().hideCurrent(event, null, null, false)) {
-          //noinspection SSBasedInspection
-          SwingUtilities.invokeLater(new Runnable() {
-            @Override
-            public void run() {
-              myLastRedispatchedEvent = e;
-              IdeEventQueue.getInstance().dispatchEvent(e);
-            }
-          });
-        }
-        return false;
-      }
-      myLastRedispatchedEvent = null;
-
       for (EventListener each : mySortedMouseListeners) {
         if (motion && each instanceof MouseMotionListener) {
           fireMouseMotion((MouseMotionListener)each, event);