Example usage for com.intellij.openapi.ui.popup JBPopup isPersistent

List of usage examples for com.intellij.openapi.ui.popup JBPopup isPersistent

Introduction

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

Prototype

boolean isPersistent();

Source Link

Usage

From source file:com.intellij.ui.popup.StackingPopupDispatcherImpl.java

License:Apache License

public void onPopupShown(JBPopup popup, boolean inStack) {
    if (inStack) {
        myStack.push(popup);//from www  .  j  a  v a 2 s.c  o m
        if (ApplicationManager.getApplication() != null) {
            IdeEventQueue.getInstance().getPopupManager().push(getInstance());
        }
    } else if (popup.isPersistent()) {
        myPersistentPopups.add(popup);
    }

    myAllPopups.add(popup);
}