Example usage for com.intellij.openapi.diff DiffTool HINT_SHOW_MODAL_DIALOG

List of usage examples for com.intellij.openapi.diff DiffTool HINT_SHOW_MODAL_DIALOG

Introduction

In this page you can find the example usage for com.intellij.openapi.diff DiffTool HINT_SHOW_MODAL_DIALOG.

Prototype

Object HINT_SHOW_MODAL_DIALOG

To view the source code for com.intellij.openapi.diff DiffTool HINT_SHOW_MODAL_DIALOG.

Click Source Link

Usage

From source file:com.urswolfer.intellij.plugin.gerrit.ui.diff.CustomizableFrameDiffTool.java

License:Apache License

static boolean shouldOpenDialog(Collection hints) {
    if (hints.contains(DiffTool.HINT_SHOW_MODAL_DIALOG))
        return true;
    if (hints.contains(DiffTool.HINT_SHOW_NOT_MODAL_DIALOG))
        return true;
    if (hints.contains(DiffTool.HINT_SHOW_FRAME))
        return false;
    return KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow() instanceof JDialog;
}