mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-159940 Wrong default location for new jdk mac open dialog
This commit is contained in:
@@ -102,8 +102,10 @@ public class MacPathChooserDialog implements PathChooserDialog, FileChooserDialo
|
||||
|
||||
@Override
|
||||
public void choose(@Nullable VirtualFile toSelect, @NotNull Consumer<List<VirtualFile>> callback) {
|
||||
String path = toSelect != null ? toSelect.getCanonicalPath() : null;
|
||||
myFileDialog.setFile(path);
|
||||
if (toSelect != null && toSelect.getParent() != null) {
|
||||
myFileDialog.setDirectory(toSelect.getParent().getCanonicalPath());
|
||||
myFileDialog.setFile(toSelect.getPath());
|
||||
}
|
||||
|
||||
final CommandProcessorEx commandProcessor =
|
||||
ApplicationManager.getApplication() != null ? (CommandProcessorEx)CommandProcessor.getInstance() : null;
|
||||
|
||||
Reference in New Issue
Block a user