Commit cf971112 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

In these cases it is safe to use the number of locally available modules


Signed-off-by: Kristof Szabados's avatarkristof <Kristof.Szabados@ericsson.com>
parent 6e3b397f
......@@ -230,7 +230,7 @@ public final class ReferenceFinder {
int size = 0;
for(IProject tempProject: relatedProjects) {
size += GlobalParser.getProjectSourceParser(tempProject).getKnownModuleNames().size();
size += GlobalParser.getProjectSourceParser(tempProject).getModules().size();
}
monitor.beginTask("Searching references.", size);
......@@ -249,15 +249,11 @@ public final class ReferenceFinder {
for(IProject project2 : relatedProjects) {
ProjectSourceParser projectSourceParser2 = GlobalParser.getProjectSourceParser(project2);
for (String moduleName2 : projectSourceParser2.getKnownModuleNames()) {
for (Module module2 : projectSourceParser2.getModules()) {
if (monitor.isCanceled()) {
return foundIdsMap;
}
Module module2 = projectSourceParser2.getModuleByName(moduleName2);
if (module2 == null) {
continue;
}
for (Module m : module2.getImportedModules()) {
if (m == scope) {
if (reportDebugInformation) {
......
......@@ -69,8 +69,8 @@ public class ComponentGraphGenerator extends GraphGenerator {
final List<IProject> visitedProjects = ProjectBasedBuilder.getProjectBasedBuilder(project).getAllReachableProjects();
for (final IProject currentProject : visitedProjects) {
for (String moduleName : projectSourceParser.getKnownModuleNames()) {
handleModule(currentProject, projectSourceParser.getModuleByName(moduleName));
for (Module module : projectSourceParser.getModules()) {
handleModule(currentProject, module);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment