use of com.intellij.ide.actions.OpenProjectFileChooserDescriptor in project intellij-community by JetBrains.
the class OpenDirectoryProjectAction method actionPerformed.
public void actionPerformed(final AnActionEvent e) {
final FileChooserDescriptor descriptor = new OpenProjectFileChooserDescriptor(false);
final Project project = e.getData(CommonDataKeys.PROJECT);
FileChooser.chooseFiles(descriptor, project, null, files -> PlatformProjectOpenProcessor.getInstance().doOpenProject(files.get(0), project, false));
}
use of com.intellij.ide.actions.OpenProjectFileChooserDescriptor in project android by JetBrains.
the class AndroidImportProjectAction method createFileChooserDescriptor.
@NotNull
protected FileChooserDescriptor createFileChooserDescriptor() {
FileChooserDescriptor descriptor = new FileChooserDescriptor(true, true, true, true, false, false) {
FileChooserDescriptor myDelegate = new OpenProjectFileChooserDescriptor(true);
@Override
public Icon getIcon(VirtualFile file) {
Icon icon = myDelegate.getIcon(file);
return icon == null ? super.getIcon(file) : icon;
}
};
descriptor.setHideIgnored(false);
descriptor.setTitle(WIZARD_TITLE);
descriptor.setDescription(WIZARD_DESCRIPTION);
return descriptor;
}
Aggregations