mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-52461 If path specified in path field in File Chooser dialog is under hidden directory it won't be selected until you enable "Show hidden" option
This commit is contained in:
+6
@@ -551,6 +551,12 @@ public class FileChooserDialogImpl extends DialogWrapper implements FileChooserD
|
||||
if (!Arrays.asList(myFileSystemTree.getSelectedFiles()).contains(vFile)) {
|
||||
myFileSystemTree.select(vFile, new Runnable() {
|
||||
public void run() {
|
||||
if (!myFileSystemTree.areHiddensShown() && !Arrays.asList(myFileSystemTree.getSelectedFiles()).contains(vFile)) {
|
||||
myFileSystemTree.showHiddens(true);
|
||||
selectInTree(vFile, requestFocus);
|
||||
return;
|
||||
}
|
||||
|
||||
myTreeIsUpdating = false;
|
||||
setErrorText(null);
|
||||
if (requestFocus) {
|
||||
|
||||
Reference in New Issue
Block a user