mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-131592 Menu disappeared after debugging Node application
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user