IDEA-131592 Menu disappeared after debugging Node application

This commit is contained in:
Vassiliy.Kudryashov
2014-10-22 19:54:55 +04:00
parent 7d386bf4f1
commit fdc313450b
2 changed files with 9 additions and 4 deletions
@@ -57,6 +57,7 @@ import java.awt.geom.GeneralPath;
import java.awt.geom.Rectangle2D;
import java.awt.geom.RoundRectangle2D;
import java.awt.image.BufferedImage;
import java.util.List;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
@@ -792,6 +793,7 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
private void hideAndDispose(final boolean ok) {
if (myDisposed) return;
myDisposed = true;
hideComboBoxPopups();
final Runnable disposeRunnable = new Runnable() {
@Override
@@ -827,6 +829,13 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
myTracker = null;
}
private void hideComboBoxPopups() {
List<JComboBox> comboBoxes = UIUtil.findComponentsOfType(myComp, JComboBox.class);
for (JComboBox box : comboBoxes) {
box.hidePopup();
}
}
protected void onDisposed() { }
@Override
@@ -90,10 +90,6 @@ public class BreakpointEditor {
}
public void actionPerformed(AnActionEvent e) {
Component component = PlatformDataKeys.CONTEXT_COMPONENT.getData(e.getDataContext());
if (component instanceof JComboBox && SwingUtilities.isDescendingFrom(component, getMainPanel())) {
((JComboBox)component).hidePopup();
}
done();
}
};