use of annis.libgui.ResolverProviderImpl in project ANNIS by korpling.
the class ResultViewPanel method createPanels.
private List<SingleResultPanel> createPanels(SaltProject p, int localMatchIndex, long globalOffset) {
List<SingleResultPanel> result = new LinkedList<>();
int i = 0;
for (SCorpusGraph corpusGraph : p.getCorpusGraphs()) {
SDocument doc = corpusGraph.getDocuments().get(0);
Match m = new Match();
if (allMatches != null && localMatchIndex >= 0 && localMatchIndex < allMatches.size()) {
m = allMatches.get(localMatchIndex);
}
SingleResultPanel panel = new SingleResultPanel(doc, m, i + globalOffset, new ResolverProviderImpl(cacheResolver), ps, sui, getVisibleTokenAnnos(), segmentationName, controller, instanceConfig, initialQuery);
i++;
panel.setWidth("100%");
panel.setHeight("-1px");
result.add(panel);
}
return result;
}
Aggregations