From 13fb4aa34584f4bee97a3d2adecce8c2b456b634 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Sat, 15 Aug 2015 15:37:41 +0300 Subject: [PATCH] javadoc for DialogWrapper#showAndGet Based on the PR #293 by Kendos-Kenlen. --- .../src/com/intellij/openapi/ui/DialogWrapper.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java b/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java index 4c28565c862f..38d5a2d35f0f 100644 --- a/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java +++ b/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java @@ -1566,14 +1566,24 @@ public abstract class DialogWrapper { } /** - * Show the dialog + * Show the dialog. * - * @throws IllegalStateException if the dialog is invoked not on the event dispatch thread + * @throws IllegalStateException if the method is invoked not on the event dispatch thread + * @see #showAndGet() + * @see #showAndGetOk() */ public void show() { invokeShow(); } + /** + * Show the modal dialog and check if it was closed with OK. + * + * @return true if the {@link #getExitCode() exit code} is {@link #OK_EXIT_CODE}. + * @throws IllegalStateException if the dialog is non-modal, or if the method is invoked not on the EDT. + * @see #show() + * @see #showAndGetOk() + */ public boolean showAndGet() { if (!isModal()) { throw new IllegalStateException("The showAndGet() method is for modal dialogs only");