[Plugin Dev] How to create a File picker

How to create a File picker, do we have any openapi

0
1 comment

I coded like this, this is worked. thanks everyone .

     String path = "/Users/twer/Downloads/";
        VirtualFile[] files = FileChooser.chooseFiles(FileChooserDescriptorFactory.createSingleFolderDescriptor(), event.getProject(), null);
        if (files.length > 0) {
            path = files[0].getPath();
        }

1

Please sign in to leave a comment.