mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
[java] provide registry option to attach external annotations to all modules (IDEA-269932)
GitOrigin-RevId: 29180902a8af0250c6e3151184e796fa617bf102
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0111a86d02
commit
37379d931d
@@ -22,6 +22,7 @@ import com.intellij.openapi.roots.*;
|
||||
import com.intellij.openapi.vfs.VfsUtilCore;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.psi.PsiManager;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -67,9 +68,15 @@ public class ReadableExternalAnnotationsManager extends BaseExternalAnnotationsM
|
||||
Collections.addAll(result, AnnotationOrderRootType.getFiles(entry));
|
||||
}
|
||||
}
|
||||
ContainerUtil.addIfNotNull(result, getAdditionalAnnotationRoot());
|
||||
return new ArrayList<>(result);
|
||||
}
|
||||
|
||||
protected @Nullable VirtualFile getAdditionalAnnotationRoot() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected synchronized void dropCache() {
|
||||
myAnnotationsRoots = null;
|
||||
|
||||
Reference in New Issue
Block a user