Example usage for com.intellij.openapi.ui.popup IdePopupEventDispatcher getComponent

List of usage examples for com.intellij.openapi.ui.popup IdePopupEventDispatcher getComponent

Introduction

In this page you can find the example usage for com.intellij.openapi.ui.popup IdePopupEventDispatcher getComponent.

Prototype

@Nullable
    Component getComponent();

Source Link

Usage

From source file:com.intellij.ide.IdePopupManager.java

License:Apache License

boolean isPopupActive() {
    for (IdePopupEventDispatcher each : myDispatchStack) {
        if (each.getComponent() == null || !each.getComponent().isShowing()) {
            myDispatchStack.remove(each);
        }/*  w w  w  .  java  2  s .  com*/
    }

    return myDispatchStack.size() > 0;
}