FeatureStructure fs = iter.get();
if (fs instanceof AnnotationFS) {
AnnotationFS a = (AnnotationFS) fs;
Feature original = fs.getType().getFeatureByBaseName(ICasEvaluator.ORIGINAL);
FeatureStructure originalfs = fs.getFeatureValue(original);
TypeTreeNode parentTypeNode = containsTypeNode(fproot, originalfs);
if (parentTypeNode == null && originalfs != null) {
parentTypeNode = new TypeTreeNode(fproot, originalfs.getType());
fproot.addChild(parentTypeNode);
}
AnnotationTreeNode newNode = new AnnotationTreeNode(parentTypeNode, a);
if (parentTypeNode != null) {
parentTypeNode.addChild(newNode);
} else {
RutaAddonsPlugin.error(new IllegalArgumentException(
"Trying to display unknown type for " + a));
}
}