List<SchemaSummary> list = fe.getAnalyzer().getPrecachedSchemaSummaries();
ListView<SchemaSummary> listview = new ListView<SchemaSummary>("listview", list) {
protected void populateItem(ListItem<SchemaSummary> item) {
long localStart = System.currentTimeMillis();
SchemaSummary ss = item.getModelObject();
item.add(new Label("schemadesc", ss.getDesc()));
StringBuffer schemalabel = new StringBuffer();
try {
List<List<JsonNode>> listOfSchemaElts = SchemaPage.getSchemaDigest(ss.getIdentifier());
for (Iterator<JsonNode> it = listOfSchemaElts.get(0).iterator(); it.hasNext(); ) {
JsonNode curNode = it.next();
schemalabel.append(curNode.get("name"));
if (it.hasNext()) {
schemalabel.append(", ");
}
}
} catch (IOException iex) {
}
String schemaUrl = urlFor(SchemaPage.class, new PageParameters("schemaid=" + ss.getSchemaId())).toString();
item.add(new ExternalLink("schemalabellink", schemaUrl, schemalabel.toString()));
List<TypeGuessSummary> typeGuesses = ss.getTypeGuesses();
for (int i = 0; i < Math.min(1, typeGuesses.size()); i++) {
TypeGuessSummary curTGS = typeGuesses.get(i);
FileSummary fs = curTGS.getFileSummary();
PageParameters pars = new PageParameters();