Re: Use of DirectoryChooser

Hello Jhonny,

The API you would normally use for this task is FileChooserFactory.

I need to get a SDK directory in the 'RunConfigurationEditorForm'. I
am trying to use com.intellij.ide.util.DirectoryChooser so the user
can browse to the sdk directory on part of the filesystem. I get an
empty browser.

here's how I am initializing it:

DirectoryChooser directoryChooser = new DirectoryChooser(project);
directoryChooser.show();
PsiDirectory directory = directoryChooser.getSelectedDirectory();


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


1 comment
Comment actions Permalink

Hello Jhonny,

The API you would normally use for this task is FileChooserFactory.

I need to get a SDK directory in the 'RunConfigurationEditorForm'. I
am trying to use com.intellij.ide.util.DirectoryChooser so the user
can browse to the sdk directory on part of the filesystem. I get an
empty browser.

here's how I am initializing it:

DirectoryChooser directoryChooser = new DirectoryChooser(project);
directoryChooser.show();
PsiDirectory directory = directoryChooser.getSelectedDirectory();


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.