mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
import actions are dumb-aware
(cherry picked from commit a33188d93158cc1516964c97465df40c26e9e487)
This commit is contained in:
@@ -86,7 +86,7 @@ public class ImportModuleAction extends AnAction {
|
||||
FileChooserDescriptor descriptor = new OpenProjectFileChooserDescriptor(true) {
|
||||
@Override
|
||||
public boolean isFileSelectable(VirtualFile file) {
|
||||
return file.isDirectory() || isProjectFile(file);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
descriptor.setTitle("Select File or Directory to Import");
|
||||
@@ -172,4 +172,9 @@ public class ImportModuleAction extends AnAction {
|
||||
Presentation presentation = e.getPresentation();
|
||||
presentation.setEnabled(getEventProject(e) != null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDumbAware() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user