Example usage for com.intellij.openapi.ui.popup.util MinimizeButton MinimizeButton

List of usage examples for com.intellij.openapi.ui.popup.util MinimizeButton MinimizeButton

Introduction

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

Prototype

public MinimizeButton(final String tooltip) 

Source Link

Usage

From source file:com.intellij.find.impl.RegExHelpPopup.java

License:Apache License

public static JBPopup createRegExHelpPopup() throws BadLocationException {
    final ComponentPopupBuilder builder = JBPopupFactory.getInstance()
            .createComponentPopupBuilder(new RegExHelpPopup(), null);
    return builder.setCancelOnClickOutside(false).setBelongsToGlobalPopupStack(true).setFocusable(true)
            .setRequestFocus(true).setMovable(true).setResizable(true).setCancelOnOtherWindowOpen(false)
            .setCancelButton(new MinimizeButton("Hide")).setTitle("Regular expressions syntax")
            .setDimensionServiceKey(null, "RegExHelpPopup", true).createPopup();
}