List<PhpIndexingVisitorExtension> extensions = new ArrayList<PhpIndexingVisitorExtension>(
extensionElements.length);
for (IConfigurationElement element : extensionElements) {
try {
PhpIndexingVisitorExtension ext = (PhpIndexingVisitorExtension) element
.createExecutableExtension(CLASS_ATTR);
ext.setRequestor(requestor);
// pass the ISourceModule over to the extension
// in case it needs it during indexing
ext.setSourceModule(module);
extensions.add(ext);
} catch (CoreException e) {
Logger.logException(e);
}
}