monitor.worked(1);
for (IResource graphResource : mergeGraphs) {
String graphName = graphResource.getName();
monitor.setTaskName("Loading dependency graph " + graphName + "...");
GraphDocument nextGraph =
ResourceCache.importGraphDocument((IFile) graphResource);
monitor.worked(1);
monitor.setTaskName("Merging dependency graph " + graphName + "...");
mergeGraph(resultModel, nextGraph.getGraph());
analyzers.addAll(nextGraph.getAnalyzers());
monitor.worked(1);
}
GraphDocument resultDoc = new GraphDocument(resultModel, analyzers);
return resultDoc;
}