throws EmuException {
XMLElement syntaxesDescriptor = findExtension(pluginDescriptor, SyntaxManager.SYNTAXES_EP_NAME);
if (syntaxesDescriptor == null) {
return;
}
SyntaxSpecLoader loader = new SyntaxSpecLoader();
for (XMLElement syntaxDescriptor : syntaxesDescriptor.getChildren()) {
if (!syntaxDescriptor.getName().equals("syntax")) {
continue;
}
SyntaxSpecAdapter adaptedElement = new XMLSyntaxSpecAdapter(syntaxDescriptor);
try {
SyntaxBundle bundle = loader.loadSyntax(adaptedElement);
if (bundle != null) {
syntaxMgr.add(bundle);
}
} catch (Exception ex) {
throw new EmuException("problem in syntax", ex);