Example usage for com.intellij.openapi.ui InputException show

List of usage examples for com.intellij.openapi.ui InputException show

Introduction

In this page you can find the example usage for com.intellij.openapi.ui InputException show.

Prototype

public void show() 

Source Link

Usage

From source file:net.sourceforge.transparent.actions.CheckoutDialog.java

License:Open Source License

protected void doOKAction() {
    if (myConfiguration.FORCE_NON_EMPTY_COMMENT && getComment().length() == 0) {
        int requestForCheckin = Messages.showYesNoDialog("Check out with empty comment?", "Comment Is Empty",
                Messages.getWarningIcon());
        if (requestForCheckin != OK_EXIT_CODE) {
            return;
        }/*from ww w  .ja v  a2 s.  co m*/
    }

    //        myConfiguration.LAST_COMMIT_MESSAGE = (getComment());
    try {
        saveState();
        super.doOKAction();
    } catch (InputException ex) {
        ex.show();
    }
}