import actions are dumb-aware

(cherry picked from commit a33188d93158cc1516964c97465df40c26e9e487)
This commit is contained in:
Dmitry Avdeev
2012-11-30 17:18:39 +04:00
parent e6e6220011
commit 4b2aedb265
@@ -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;
}
}