mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-85367 "OK" button in Import settings should be available for archives
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
package com.intellij.configurationStore;
|
||||
|
||||
import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.ide.highlighter.ArchiveFileType;
|
||||
import com.intellij.ide.util.ElementsChooser;
|
||||
import com.intellij.ide.util.PropertiesComponent;
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
@@ -153,6 +154,7 @@ public class ChooseComponentsToExportDialog extends DialogWrapper {
|
||||
chooserDescriptor.setDescription(description);
|
||||
chooserDescriptor.setHideIgnored(false);
|
||||
chooserDescriptor.setTitle(title);
|
||||
chooserDescriptor.withFileFilter(file -> ArchiveFileType.INSTANCE.equals(file.getFileType()));
|
||||
|
||||
VirtualFile initialDir;
|
||||
if (oldPath != null) {
|
||||
|
||||
@@ -68,8 +68,7 @@ open class ImportSettingsAction : AnAction(), DumbAware {
|
||||
|
||||
protected open fun doImport(saveFile: Path) {
|
||||
if (!saveFile.exists()) {
|
||||
Messages.showErrorDialog(IdeBundle.message("error.cannot.find.file", presentableFileName(saveFile)),
|
||||
IdeBundle.message("title.file.not.found"))
|
||||
Messages.showErrorDialog(IdeBundle.message("error.cannot.find.file", presentableFileName(saveFile)), IdeBundle.message("title.file.not.found"))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user