From 7415bc61939b8a5cc39b80e88e89ecc96e56d402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 29 Mar 2022 14:19:12 +0200 Subject: [PATCH] file_and_class_choosers.md: formatting --- .../user_interface_components/file_and_class_choosers.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/topics/user_interface_components/file_and_class_choosers.md b/topics/user_interface_components/file_and_class_choosers.md index 7c2b579a3..4bd2a3b7f 100644 --- a/topics/user_interface_components/file_and_class_choosers.md +++ b/topics/user_interface_components/file_and_class_choosers.md @@ -19,7 +19,7 @@ Note that the native macOS file chooser does not support most of the customizati ### Via Textfield -A very common way of using file choosers is to use a text field for entering the path with an ellipsis button ("...") for showing the file chooser. +A very common way of using file choosers is to use a text field for entering the path with an ellipsis button (...) for showing the file chooser. To create such a control, use the [`TextFieldWithBrowseButton`](upsource:///platform/platform-api/src/com/intellij/openapi/ui/TextFieldWithBrowseButton.java) component and call the `addBrowseFolderListener()` method on it to set up the file chooser. As an added bonus, this will enable filename completion when entering paths in the text box. @@ -31,10 +31,9 @@ An alternative UI for selecting files, which works best when the most common way The dialog shown by this API has two tabs: * One shows the project structure +* Another shows a list of files similar to the one used by the Navigate | File popup. -* Another shows a list of files similar to the one used by the `Goto File` popup. - -To show the dialog, call `showDialog()` on the chooser returned from `createFileChooser()`, and then call `getSelectedFile` to retrieve the user's selection. +To show the dialog, call `showDialog()` on the chooser returned from `createFileChooser()`, and then call `getSelectedFile()` to retrieve the user's selection. ## Class and Package Choosers