mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
mark content roots that annotated as source or test roots.
This commit is contained in:
@@ -55,6 +55,14 @@ public class PsiDirectoryNode extends BasePsiNode<PsiDirectory> {
|
||||
if (getParentValue() instanceof Project) {
|
||||
data.addText(" (" + directoryFile.getPresentableUrl() + ")", SimpleTextAttributes.GRAYED_ATTRIBUTES);
|
||||
}
|
||||
else if (ProjectRootsUtil.isSourceOrTestRoot(directoryFile, project)) {
|
||||
if (ProjectRootsUtil.isInTestSource(directoryFile, project)) {
|
||||
data.addText(" (test source root)", SimpleTextAttributes.GRAY_ATTRIBUTES);
|
||||
}
|
||||
else {
|
||||
data.addText(" (source root)", SimpleTextAttributes.GRAY_ATTRIBUTES);
|
||||
}
|
||||
}
|
||||
|
||||
setupIcon(data, psiDirectory);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user