// update and display annotations
for (int i = 0; i < annotations.getLength(); ++i) {
XSAnnotation annotation = (XSAnnotation) annotations.item(i);
logger.debug("Annotation #" + i + " [" + annotation + "]");
logger.debug("Annotation #" + i + " type=[" + annotation.getType() + "], value=[" + annotation.getAnnotationString() + "]");
AnnotationContentHandler contentHandler = new AnnotationContentHandler();
annotation.writeAnnotation(contentHandler, XSAnnotation.SAX_CONTENTHANDLER);
List<XmlSchemaAnnotation> annotationsList = contentHandler.getAnnotations();
this.annotationsListModel.clear();
if (null == annotationsList || annotationsList.isEmpty()) {
this.annotationsListModel.add(NO_ANNOTATIONS);
}
else {