}
public static void validateTMLFile(IFile file) {
try {
TMLDocumentProvider provider = new TMLDocumentProvider();
IFileEditorInput input = new FileEditorInput(file);
provider.connect(input);
VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(file);
Iterator<MarkingHandler> it = allHandlers.iterator();
while (it.hasNext()) {
MarkingHandler handler = it.next();
handler.setWGAVersionCompliance(versionCompliance);
handler.setDocumentProvider(provider);
handler.createMarkers(file, provider.getDocument(input));
}
provider.disconnect(input);
} catch (CoreException e) {
Plugin.getDefault().logError("Unable to validate tml file '" + file.getLocation().toString() + "'.", e);
}
}