mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
dialog_wrapper.md: clarify exit codes
This commit is contained in:
parent
0bb69d607f
commit
758b8af0bc
@ -41,7 +41,7 @@ When using Kotlin, use [Kotlin UI DSL](kotlin_ui_dsl.md) to provide the dialog's
|
|||||||
>
|
>
|
||||||
{type="tip"}
|
{type="tip"}
|
||||||
|
|
||||||
To display the dialog, call the `show()` method and then use the `getExitCode()` method to check how the dialog was closed.
|
To display the dialog, call the `show()` method and then use the `getExitCode()` method to check how the dialog was closed (see `DialogWrapper#OK_EXIT_CODE|CANCEL_EXIT_CODE|CLOSE_EXIT_CODE`).
|
||||||
The `showAndGet()` method can be used to combine these two calls.
|
The `showAndGet()` method can be used to combine these two calls.
|
||||||
|
|
||||||
To customize the buttons displayed in the dialog (replacing the standard <control>OK</control>/<control>Cancel</control>/<control>Help</control> set of buttons), override either the `createActions()` or `createLeftActions()` methods.
|
To customize the buttons displayed in the dialog (replacing the standard <control>OK</control>/<control>Cancel</control>/<control>Help</control> set of buttons), override either the `createActions()` or `createLeftActions()` methods.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user