mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-83059 - IAE: PopupComponent$DialogPopupWrapper.<init>
This commit is contained in:
@@ -445,7 +445,7 @@ public class AbstractPopup implements JBPopup {
|
||||
window = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow();
|
||||
}
|
||||
|
||||
if (window != null) {
|
||||
if (window != null && window.isShowing()) {
|
||||
showInCenterOf(window);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ public interface PopupComponent {
|
||||
|
||||
public DialogPopupWrapper(Component owner, Component content, int x, int y, JBPopup jbPopup) {
|
||||
if (!owner.isShowing()) {
|
||||
throw new IllegalArgumentException("Popup owner must be showing");
|
||||
throw new IllegalArgumentException("Popup owner must be showing, owner " + owner.getClass());
|
||||
}
|
||||
|
||||
final Window wnd = UIUtil.getWindow(owner);
|
||||
|
||||
Reference in New Issue
Block a user