void (ActionEvent e) { TreeFileChooserFactory chooserFactory = TreeFileChooserFactory.getInstance(myProject); final PropertiesFile propertiesFile = getPropertiesFile(); TreeFileChooser fileChooser = chooserFactory.createFileChooser( PropertiesBundle.message("i18nize.dialog.property.file.chooser.title"), propertiesFile != null ? propertiesFile.getContainingFile() : null, PropertiesFileType.INSTANCE, null); fileChooser.showDialog(); PsiFile selectedFile = fileChooser.getSelectedFile(); if (selectedFile == null) return; String selectedPath = selectedFile.getVirtualFile().getPath(); myPropertiesFile.setText(FileUtil.toSystemDependentName(selectedPath)); myPropertiesFile.setSelectedItem(FileUtil.toSystemDependentName(selectedPath)); }