get rid of deprecated method usage
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Mon, 26 Sep 2016 13:44:19 +0000 (16:44 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Mon, 26 Sep 2016 13:44:19 +0000 (16:44 +0300)
platform/platform-impl/src/com/intellij/util/ui/SwingHelper.java

index ca43a153447b978f87f5c98aa55b01e3a508d100..c16ac4c66132b80ea42d469596b45d5d890ff420 100644 (file)
@@ -429,16 +429,11 @@ public class SwingHelper {
                                                        @NotNull TextComponentAccessor<T> textComponentAccessor) {
     fileChooserDescriptor = fileChooserDescriptor.withShowHiddenFiles(SystemInfo.isUnix);
     componentWithBrowseButton.addBrowseFolderListener(
+      browseDialogTitle,
+      null,
       project,
-      new ComponentWithBrowseButton.BrowseFolderActionListener<>(
-        browseDialogTitle,
-        null,
-        componentWithBrowseButton,
-        project,
-        fileChooserDescriptor,
-        textComponentAccessor
-      ),
-      true
+      fileChooserDescriptor,
+      textComponentAccessor
     );
     FileChooserFactory.getInstance().installFileCompletion(
       textField,