use of com.amalto.workbench.widgets.xmlviewer.validator.XMLValidator in project tmdm-studio-se by Talend.
the class XMLSourceViewer method installValidator.
private void installValidator() {
if (document != null) {
final XMLValidator validator = new XMLValidator(document, annotationModel);
IDocumentListener validateListener = new IDocumentListener() {
public void documentChanged(DocumentEvent event) {
validator.validate(document);
}
public void documentAboutToBeChanged(DocumentEvent event) {
}
};
document.addDocumentListener(validateListener);
}
}
Aggregations