mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] allows one module-info file in either source or test root - actions (IDEA-171221)
This commit is contained in:
@@ -61,7 +61,7 @@ public class CreateModuleInfoAction extends CreateFromTemplateActionBase {
|
||||
.map(view -> getTargetDirectory(ctx, view))
|
||||
.filter(PsiUtil::isLanguageLevel9OrHigher)
|
||||
.map(ModuleUtilCore::findModuleForPsiElement)
|
||||
.map(module -> FilenameIndex.getVirtualFilesByName(module.getProject(), MODULE_INFO_FILE, module.getModuleScope(false)).isEmpty())
|
||||
.map(module -> FilenameIndex.getVirtualFilesByName(module.getProject(), MODULE_INFO_FILE, module.getModuleScope()).isEmpty())
|
||||
.orElse(false);
|
||||
e.getPresentation().setEnabledAndVisible(available);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user