This commit is contained in:
Dmitry Avdeev
2011-04-06 15:58:22 +04:00
parent 52b70dfaff
commit a5a4245c05
3 changed files with 3 additions and 3 deletions
@@ -112,7 +112,7 @@ public class PsiClassConverter extends Converter<PsiClass> implements CustomRefe
if (virtualFile == null) return null;
ProjectFileIndex fileIndex = ProjectRootManager.getInstance(file.getProject()).getFileIndex();
boolean tests = fileIndex.isInTestSourceContent(virtualFile);
return module.getModuleRuntimeScope(tests).union(module.getModuleWithDependenciesAndLibrariesScope(tests));
return module.getModuleRuntimeScope(tests);
}
public static class AnnotationType extends PsiClassConverter {
@@ -51,7 +51,7 @@ public class DomJavaUtil {
else {
ProjectFileIndex fileIndex = ProjectRootManager.getInstance(file.getProject()).getFileIndex();
boolean tests = fileIndex.isInTestSourceContent(virtualFile);
scope = module.getModuleRuntimeScope(tests).union(module.getModuleWithDependenciesAndLibrariesScope(tests));
scope = module.getModuleRuntimeScope(tests);
}
}
else {
@@ -63,6 +63,6 @@ public abstract class ClassValueConverter extends Converter<PsiClass> implements
}
final boolean inTests = ProjectRootManager.getInstance(project).getFileIndex().isInTestSourceContent(file);
return module.getModuleRuntimeScope(inTests).union(module.getModuleWithDependenciesAndLibrariesScope(inTests));
return module.getModuleRuntimeScope(inTests);
}
}